From 6c0a0cc29b00d0a58a3ee55a8a7e4909ebf3454c Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 30 Dec 2016 17:57:42 +0100 Subject: Use format strings for draw_text and log --- library.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'library.h') diff --git a/library.h b/library.h index 66cbde0..d078861 100644 --- a/library.h +++ b/library.h @@ -19,4 +19,7 @@ shared_ptr 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))); -- cgit v1.2.3-70-g09d2