src/squirrel.hpp
branchnoai
changeset 9525 1d6c509b56ee
parent 9435 9dad22394553
child 9539 7416d0694d3a
equal deleted inserted replaced
9524:283d23931bb4 9525:1d6c509b56ee
    46 	 *  either a method or a global function.
    46 	 *  either a method or a global function.
    47 	 */
    47 	 */
    48 	void AddMethod(const char *method_name, SQFUNCTION proc, uint nparam, const char *params);
    48 	void AddMethod(const char *method_name, SQFUNCTION proc, uint nparam, const char *params);
    49 	void AddMethod(const char *method_name, SQFUNCTION proc);
    49 	void AddMethod(const char *method_name, SQFUNCTION proc);
    50 	void AddMethod(const char *method_name, SQFUNCTION proc, void *userdata, int size);
    50 	void AddMethod(const char *method_name, SQFUNCTION proc, void *userdata, int size);
       
    51 
       
    52 	/**
       
    53 	 * Adds a const to the stack. Depending on the current state this means
       
    54 	 *  either a const to a class or to the global space.
       
    55 	 */
       
    56 	void AddConst(const char *var_name, int value);
    51 
    57 
    52 	/**
    58 	/**
    53 	 * Adds a class to the global scope. Make sure to call AddClassEnd when you
    59 	 * Adds a class to the global scope. Make sure to call AddClassEnd when you
    54 	 *  are done adding methods.
    60 	 *  are done adding methods.
    55 	 */
    61 	 */