squirrel_std.hpp

Go to the documentation of this file.
00001 /* $Id: squirrel_std.hpp 15060 2009-01-13 15:44:36Z smatz $ */
00002 
00005 #ifndef SQUIRREL_STD_HPP
00006 #define SQUIRREL_STD_HPP
00007 
00008 #if defined(__APPLE__)
00009 /* Which idiotic system makes 'require' a macro? :s Oh well.... */
00010 #undef require
00011 #endif /* __APPLE__ */
00012 
00019 class SquirrelStd {
00020 public:
00024   static SQInteger abs(HSQUIRRELVM vm);
00025 
00029   static SQInteger min(HSQUIRRELVM vm);
00030 
00034   static SQInteger max(HSQUIRRELVM vm);
00035 
00041   static SQInteger require(HSQUIRRELVM vm);
00042 
00046   static SQInteger notifyallexceptions(HSQUIRRELVM vm);
00047 };
00048 
00052 void squirrel_register_std(Squirrel *engine);
00053 
00058 void squirrel_register_global_std(Squirrel *engine);
00059 
00060 #endif /* SQUIRREL_STD_HPP */

Generated on Sun Mar 15 22:49:49 2009 for openttd by  doxygen 1.5.6