mirror of
https://github.com/sigmasternchen/libparcival
synced 2025-03-15 03:48:55 +00:00
expose render and size functions with va_list argument
This commit is contained in:
parent
0e8ba48a9e
commit
e4a8695604
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ static template_length_t findTemplateSize(const char* name) {
|
|||
return t.s;
|
||||
}
|
||||
|
||||
static void _renderTemplate(const char* name, FILE* out, va_list argptr) {
|
||||
void _renderTemplate(const char* name, FILE* out, va_list argptr) {
|
||||
template_t t = findTemplate(false, false, name);
|
||||
t(out, argptr);
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ void renderTemplateEnd(const char* name, FILE* out, ...) {
|
|||
va_end(argptr);
|
||||
}
|
||||
|
||||
static size_t _sizeTemplate(const char* name, va_list argptr) {
|
||||
size_t _sizeTemplate(const char* name, va_list argptr) {
|
||||
template_length_t s = findTemplateSize(name);
|
||||
return s(argptr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue