mirror of
https://github.com/Ed94/gencpp.git
synced 2025-07-02 03:41:03 -07:00
Added macros to make the gen namespace optional.
This commit is contained in:
@ -133,7 +133,15 @@
|
||||
# endif
|
||||
#pragma endregion Mandatory Includes
|
||||
|
||||
namespace gen {
|
||||
#ifdef GEN_DONT_USE_NAMESPACE
|
||||
# define GEN_NS_BEGIN
|
||||
# define GEN_NS_END
|
||||
#else
|
||||
# define GEN_NS_BEGIN namespace gen {
|
||||
# define GEN_NS_END }
|
||||
#endif
|
||||
|
||||
GEN_NS_BEGIN
|
||||
|
||||
#pragma region Macros
|
||||
#define zpl_cast( Type ) ( Type )
|
||||
@ -2918,6 +2926,4 @@ f64 time_rel( void );
|
||||
u64 time_rel_ms( void );
|
||||
#endif
|
||||
|
||||
// gen namespace
|
||||
}
|
||||
|
||||
GEN_NS_END
|
||||
|
Reference in New Issue
Block a user