squirrel_std.hpp

Go to the documentation of this file.
00001 /* $Id: squirrel_std.hpp 20632 2010-08-26 22:01:16Z rubidium $ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
00006  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
00008  */
00009 
00012 #ifndef SQUIRREL_STD_HPP
00013 #define SQUIRREL_STD_HPP
00014 
00015 #include "squirrel.hpp"
00016 
00017 #if defined(__APPLE__)
00018 /* Which idiotic system makes 'require' a macro? :s Oh well.... */
00019 #undef require
00020 #endif /* __APPLE__ */
00021 
00028 class SquirrelStd {
00029 public:
00030 
00034   static SQInteger min(HSQUIRRELVM vm);
00035 
00039   static SQInteger max(HSQUIRRELVM vm);
00040 
00046   static SQInteger require(HSQUIRRELVM vm);
00047 
00051   static SQInteger notifyallexceptions(HSQUIRRELVM vm);
00052 };
00053 
00057 void squirrel_register_std(Squirrel *engine);
00058 
00063 void squirrel_register_global_std(Squirrel *engine);
00064 
00065 #endif /* SQUIRREL_STD_HPP */

Generated on Sun Jan 9 16:02:01 2011 for OpenTTD by  doxygen 1.6.1