From 03d363a337eea7fce725efbd51f99449e06395ef Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 7 Nov 2018 19:30:34 -0500 Subject: Added a method to get errors from the template Added a method const char* TMPL_err(TMPL_templates* t, size_t* size); t is the template that had an error size is a pointer, size of the error message is returned; --- src/ctemplates.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ctemplates.h') diff --git a/src/ctemplates.h b/src/ctemplates.h index 4d4fac5..1df0f43 100644 --- a/src/ctemplates.h +++ b/src/ctemplates.h @@ -197,6 +197,7 @@ struct TMPL_loop* TMPL_alloc_loop(void); void TMPL_free_loop(struct TMPL_loop* tl); char* TMPL_render(struct TMPL_templates* t, struct TMPL_varlist* varlist, size_t* size_p); +const char* TMPL_err(struct TMPL_templates* t, size_t* size); struct TMPL_tagnode* TMPL_alloc_tagnode(enum TMPL_tagtype); void TMPL_free_tagnode(struct TMPL_tagnode* tn); -- cgit v1.2.3-70-g09d2