moved back to old acc
[vox.git] / src / core / debug.hpp
bloba134436b89dd1b8c33281017e17ea8c065e6da95
2 #ifndef __vox_debug_hpp__
3 #define __vox_debug_hpp__
5 #include "names.hpp"
7 template<typename Type> const char* get_funcname(Type& si)
9 if(si.funcname)
11 return si.funcname;
13 return NAMES_ANONFUNC;
16 template<typename Type> const char* get_sourcename(Type& si)
18 if(si.source)
20 return si.source;
22 return NAMES_ANONFILE;
26 void vox_aux_compiler_error(VXState* v,
27 const char *sErr,
28 const char *sSource,
29 VXInteger line,
30 VXInteger column);
32 VXInteger vox_aux_printerror(VXState* v);
33 #endif /* __vox_debug_hpp__ */