summaryrefslogtreecommitdiff
path: root/modules/gdnative/godot.h
diff options
context:
space:
mode:
authorsheepandshepherd <sheepandshepherd@hotmail.com>2017-05-09 20:18:20 +0200
committersheepandshepherd <sheepandshepherd@hotmail.com>2017-05-10 00:19:38 +0200
commit99e07448d1bb67f4b10e2234b5f2f18a0acf5de2 (patch)
treeba96df330177f0025175a66c28dc51492be01c72 /modules/gdnative/godot.h
parent32afcbc48258ea970ef4b0707f69543baf0f2f5a (diff)
Add error printing functions to GDNative
Diffstat (limited to 'modules/gdnative/godot.h')
-rw-r--r--modules/gdnative/godot.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdnative/godot.h b/modules/gdnative/godot.h
index b05cafbe50..e8f0bc0553 100644
--- a/modules/gdnative/godot.h
+++ b/modules/gdnative/godot.h
@@ -404,6 +404,10 @@ void GDAPI *godot_alloc(int p_bytes);
void GDAPI *godot_realloc(void *p_ptr, int p_bytes);
void GDAPI godot_free(void *p_ptr);
+//print using Godot's error handler list
+void GDAPI godot_print_error(const char *p_description, const char *p_function, const char *p_file, int p_line);
+void GDAPI godot_print_warning(const char *p_description, const char *p_function, const char *p_file, int p_line);
+
#ifdef __cplusplus
}
#endif