Free Electron
xs_defs.h
1 // Copyright (c) 2001 John Panzer
2 // Permission is granted to use this code without restriction as
3 // long as this copyright notice appears in all source files.
4 
5 #ifndef XS_DEFS_H_INCLUDED
6 #define XS_DEFS_H_INCLUDED
7 
8 #include <cassert>
9 
10 #ifdef XSTRING_DEBUG
11 #define xs_assert(x) assert(x)
12 #else
13 #define xs_assert(x)
14 #endif
15 
16 #ifdef NO_NAMESPACES
17 #define XS_NAMESPACE(NS)
18 #define XS_END_NAMESPACE
19 #else
20 #define XS_NAMESPACE(NS) namespace NS {
21 #define XS_END_NAMESPACE }
22 #endif
23 
24 
25 #endif