Skip to content

Commit

Permalink
Moved basic types i16, u16, i32, u32, ... into vamiga namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Jan 9, 2025
1 parent 73bfcdb commit 5e3e5a3
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Emulator/Base/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// Type aliases
//

// namespace vamiga {
namespace vamiga {

typedef i64 Cycle; // Master cycle units
typedef i64 CPUCycle; // CPU cycle units
Expand All @@ -37,4 +37,4 @@ typedef u8 KeyCode;
// File Systems
typedef u32 Block;

// }
}
3 changes: 3 additions & 0 deletions Emulator/Components/CIA/TODTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "Types.h"

namespace vamiga {
//
// Structures
//
Expand All @@ -22,3 +23,5 @@ typedef struct
u32 alarm;
}
TODInfo;

}
4 changes: 2 additions & 2 deletions Emulator/Misc/OSDebugger/OSDebugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
#include "Memory.h"
#include <sstream>

using namespace os;

namespace vamiga {

using namespace os;

string
OSDebugger::dosTypeStr(u32 type)
{
Expand Down
2 changes: 1 addition & 1 deletion Emulator/Misc/OSDebugger/OSDebuggerTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "Reflection.h"
#include <vector>

namespace os {
namespace vamiga::os {

#define APTR(x) (u32)(x)
#define BPTR(x) (u32)(4*(x))
Expand Down
4 changes: 2 additions & 2 deletions Emulator/Utilities/BasicTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace vamiga { namespace fs = std::filesystem; }
// Integers
//

// namespace vamiga {
namespace vamiga {

// Signed integers
typedef signed char i8;
Expand All @@ -62,7 +62,7 @@ typedef unsigned int u32;
typedef unsigned long long u64;
typedef unsigned long usize;

// }
}

//
// Optionals
Expand Down
2 changes: 1 addition & 1 deletion GUI/Metal/Layers/Canvas.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class Canvas: Layer {
precondition(sfTexture != nil)

// Get the emulator texture
var buffer: UnsafePointer<u32>!
var buffer: UnsafePointer<UInt32>!
var nr = 0

// Prevent the stable texture from changing
Expand Down

0 comments on commit 5e3e5a3

Please sign in to comment.