# squirrel_std.hpp

Go to the documentation of this file.

    00001 /* $Id: squirrel_std.hpp 18683 2010-01-01 18:45:40Z 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 #if defined(__APPLE__)
    00016 /* Which idiotic system makes 'require' a macro? :s Oh well.... */
    00017 #undef require
    00018 #endif /* __APPLE__ */
    00019
    00026 class SquirrelStd {
    00027 public:
    00028
    00032   static SQInteger min(HSQUIRRELVM vm);
    00033
    00037   static SQInteger max(HSQUIRRELVM vm);
    00038
    00044   static SQInteger require(HSQUIRRELVM vm);
    00045
    00049   static SQInteger notifyallexceptions(HSQUIRRELVM vm);
    00050 };
    00051
    00055 void squirrel_register_std(Squirrel *engine);
    00056
    00061 void squirrel_register_global_std(Squirrel *engine);
    00062
    00063 #endif /* SQUIRREL_STD_HPP */