Replace define private with __friends
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
namespace JabyEngine {
|
||||
namespace FileProcessor {
|
||||
class State {
|
||||
private:
|
||||
__friends:
|
||||
struct Reserved {
|
||||
uint32_t reserved[4];
|
||||
};
|
||||
@@ -33,7 +33,7 @@ namespace JabyEngine {
|
||||
}
|
||||
};
|
||||
|
||||
private:
|
||||
__friends:
|
||||
Configuration config;
|
||||
Reserved reserved;
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
namespace JabyEngine {
|
||||
class MasterTime {
|
||||
private:
|
||||
__friends:
|
||||
static uint32_t value;
|
||||
|
||||
public:
|
||||
|
@@ -54,7 +54,7 @@ namespace JabyEngine {
|
||||
friend class HighResTime;
|
||||
};
|
||||
|
||||
private:
|
||||
__friends:
|
||||
static constexpr uint16_t TicksFor100us = CPUTicks::ticks_per_us<uint16_t>(CPUTicks::Frequency_Hz_Div8, 100.0);
|
||||
static constexpr uint16_t TicksFor1ms = CPUTicks::ticks_per_ms<uint16_t>(CPUTicks::Frequency_Hz_Div8, 1.0);
|
||||
static constexpr uint16_t TicksFor10ms = CPUTicks::ticks_per_ms<uint16_t>(CPUTicks::Frequency_Hz_Div8, 10.0);
|
||||
|
@@ -10,6 +10,10 @@
|
||||
#define __section(name) __attribute__((section(name)))
|
||||
#define __collect(...) __VA_ARGS__
|
||||
|
||||
#ifndef __friends
|
||||
#define __friends private
|
||||
#endif //!__friends
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define __constexpr constexpr
|
||||
#define START_C_FUNCTIONS extern "C" {
|
||||
|
Reference in New Issue
Block a user