Cogs.Foundation
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
FoundationBase.h File Reference
#include <cassert>
#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  Cogs
 Main Cogs namespace.
 

Macros

#define COGSFOUNDATION_API
 
#define COGS_FOUNDATION_SIZE_T_LITERAL_SUFFIX   1
 
#define debug_assert(x)   ((void)0)
 

Functions

constexpr size_t operator""_uz (unsigned long long x)
 Literal suffix for size_t type.
 
template<typename ClassType , typename FieldType >
size_t Cogs::memberOffset (FieldType ClassType::*ptr)
 Find the offset of a pointer to member in a class or struct.
 
constexpr uint32_t Cogs::make2CCLE (uint8_t a, uint8_t b)
 
constexpr uint32_t Cogs::make2CCBE (uint8_t a, uint8_t b)
 
constexpr uint32_t Cogs::make4CCLE (uint8_t a, uint8_t b, uint8_t c, uint8_t d)
 
constexpr uint32_t Cogs::make4CCBE (uint8_t a, uint8_t b, uint8_t c, uint8_t d)
 
const char * Cogs::getFoundationVersionString ()
 

Macro Definition Documentation

◆ COGS_FOUNDATION_SIZE_T_LITERAL_SUFFIX

#define COGS_FOUNDATION_SIZE_T_LITERAL_SUFFIX   1

◆ COGSFOUNDATION_API

#define COGSFOUNDATION_API

◆ debug_assert

#define debug_assert (   x)    ((void)0)

Function Documentation

◆ operator""_uz()

constexpr size_t operator""_uz ( unsigned long long  x)
constexpr

Literal suffix for size_t type.

Wrapped in ifndef to provide a way to avoid double definitions if cogs is included in projects where this is already defined.