src/squirrel.hpp
branchnoai
changeset 9539 7416d0694d3a
parent 9525 1d6c509b56ee
child 9576 d650eb70a8d0
equal deleted inserted replaced
9538:dc2378f254a5 9539:7416d0694d3a
    43 
    43 
    44 	/**
    44 	/**
    45 	 * Adds a function to the stack. Depending on the current state this means
    45 	 * Adds a function to the stack. Depending on the current state this means
    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 = 0, const char *params = NULL, void *userdata = NULL, int size = 0);
    49 	void AddMethod(const char *method_name, SQFUNCTION proc);
       
    50 	void AddMethod(const char *method_name, SQFUNCTION proc, void *userdata, int size);
       
    51 
    49 
    52 	/**
    50 	/**
    53 	 * Adds a const to the stack. Depending on the current state this means
    51 	 * 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.
    52 	 *  either a const to a class or to the global space.
    55 	 */
    53 	 */