summaryrefslogtreecommitdiff
path: root/library.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-12-30 17:57:42 +0100
committertomsmeding <tom.smeding@gmail.com>2016-12-30 17:57:42 +0100
commit6c0a0cc29b00d0a58a3ee55a8a7e4909ebf3454c (patch)
treed9bc259e593c0a1cdfa4eba401a1b7a04d05b6be /library.h
parentf62f270de05ebe5a71ef2e66a1a0f54b4ed9dc61 (diff)
Use format strings for draw_text and log
Diffstat (limited to 'library.h')
-rw-r--r--library.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/library.h b/library.h
index 66cbde0..d078861 100644
--- a/library.h
+++ b/library.h
@@ -19,4 +19,7 @@ shared_ptr<Object> instance_create(int x,int y){
}
void draw_text(int x,int y,const char *s);
+void draw_textf(int x,int y,const char *format,...) __attribute__((format (printf, 3, 4)));
+
void log(const char *s);
+void logf(const char *format,...) __attribute__((format (printf, 1, 2)));