From 99e07448d1bb67f4b10e2234b5f2f18a0acf5de2 Mon Sep 17 00:00:00 2001 From: sheepandshepherd Date: Tue, 9 May 2017 20:18:20 +0200 Subject: Add error printing functions to GDNative --- modules/gdnative/godot.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/gdnative/godot.h') 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 -- cgit v1.2.3