serious bugfix in Raise_IdxError (number got formatted as string, causing a segmentat...
[vox.git] / src / stdlib / helper.hpp
blob729551a891a9684c5b0f5e35fc12d8aab68c8b8d
2 #ifndef __vox_stdlib_helper_hpp
3 #define __vox_stdlib_helper_hpp
5 #include <stdexcept>
6 #include <exception>
7 #include <vector>
8 #include <string>
9 #include <ctime>
10 #include <cstring>
11 #include <cstdlib>
12 #include <cstdio>
13 #include <cctype>
14 #include <signal.h>
15 #include <assert.h>
16 #include <errno.h>
17 #include <sys/stat.h>
18 #include "../core/baselib.hpp"
20 #if defined(VOX_PLATFORM_UNIX)
21 # include <unistd.h>
22 # include <sys/utsname.h>
23 #endif
25 #if defined(VOX_PLATFORM_MSWINDOWS)
26 # include <windows.h>
27 # include <direct.h>
28 #endif
30 template<typename ReturnT, typename InputT>
31 ReturnT forcecast(InputT what)
33 return *((ReturnT*)&what);
36 void oslib_register_libload(VXState* v, VXTableObj* top);
38 #endif /* __vox_stdlib_helper_hpp */