projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added type checking for __custom functions
[supertux.git]
/
src
/
scripting
/
functions.hpp
diff --git
a/src/scripting/functions.hpp
b/src/scripting/functions.hpp
index
a219aef
..
3cff6f9
100644
(file)
--- a/
src/scripting/functions.hpp
+++ b/
src/scripting/functions.hpp
@@
-22,7
+22,7
@@
#ifndef SCRIPTING_API
#define __suspend
#ifndef SCRIPTING_API
#define __suspend
-#define __custom
+#define __custom
(x)
#include <string>
#endif
#include <string>
#endif
@@
-32,7
+32,7
@@
namespace Scripting
/**
* Display the value of the argument. This is useful for inspecting tables.
*/
/**
* Display the value of the argument. This is useful for inspecting tables.
*/
-SQInteger display(HSQUIRRELVM vm) __custom;
+SQInteger display(HSQUIRRELVM vm) __custom
("t.")
;
/**
* Displays contents of the current stack
/**
* Displays contents of the current stack
@@
-42,7
+42,7
@@
void print_stacktrace(HSQUIRRELVM vm);
/**
* returns the currently running thread
*/
/**
* returns the currently running thread
*/
-SQInteger get_current_thread(HSQUIRRELVM vm) __custom;
+SQInteger get_current_thread(HSQUIRRELVM vm) __custom
("t")
;
/**
* Display a text file and scrolls it over the screen (on next screenswitch)
/**
* Display a text file and scrolls it over the screen (on next screenswitch)