From caf15b28661803957987163d809169c93f72b53b Mon Sep 17 00:00:00 2001 From: Marrub Date: Sun, 23 Oct 2016 21:24:40 -0400 Subject: [PATCH] Types: Add Lth_OptArgs macro --- lithos_c/inc/Lth_types.h | 1 + lithos_c/inc/Lth_window.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lithos_c/inc/Lth_types.h b/lithos_c/inc/Lth_types.h index a60e338..4d192df 100644 --- a/lithos_c/inc/Lth_types.h +++ b/lithos_c/inc/Lth_types.h @@ -14,6 +14,7 @@ #define lithos3__Lth_types_h #define Lth_ScriptCall [[__call("ScriptS")]] +#define Lth_OptArgs(n) [[__optional_args(n)]] #define Lth_Inherits(name) [[__anonymous]] name _super #define Lth_Mixin(name) [[__anonymous]] name _##name diff --git a/lithos_c/inc/Lth_window.h b/lithos_c/inc/Lth_window.h index 1bfa328..ead4540 100644 --- a/lithos_c/inc/Lth_window.h +++ b/lithos_c/inc/Lth_window.h @@ -33,8 +33,7 @@ typedef struct Lth_Window // Extern Functions ----------------------------------------------------------| -[[__optional_args(2)]] -Lth_Window *Lth_WindowNew(char const *title, int x, int y, int w, int h); +Lth_OptArgs(2) Lth_Window *Lth_WindowNew(char const *title, int x, int y, int w, int h); void Lth_WindowSetTitle(Lth_Window *ctrl, char const *title); #endif//lithos3__Lth_window_h