diff options
| author | Tyge Lovset <[email protected]> | 2023-04-01 21:19:26 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-04-01 21:19:26 +0200 |
| commit | b81d7e44bd84a3c8513980a71a06d939f44af16b (patch) | |
| tree | d8b5f4f7c6c85c75b1732c84aae129c6c1003158 /include/stc/priv/template.h | |
| parent | 5693ae9ae0d1a18627ba540e0240da010b282296 (diff) | |
| download | STC-modified-b81d7e44bd84a3c8513980a71a06d939f44af16b.tar.gz STC-modified-b81d7e44bd84a3c8513980a71a06d939f44af16b.zip | |
Update of stc/extend.h
Diffstat (limited to 'include/stc/priv/template.h')
| -rw-r--r-- | include/stc/priv/template.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/stc/priv/template.h b/include/stc/priv/template.h index d9e38dba..5ea0cf4f 100644 --- a/include/stc/priv/template.h +++ b/include/stc/priv/template.h @@ -25,7 +25,7 @@ #ifndef STC_TEMPLATE_H_INCLUDED #define STC_TEMPLATE_H_INCLUDED - #define _cx_self c_PASTE(_i_prefix, i_tag) + #define _cx_self i_type #define _cx_memb(name) c_PASTE(_cx_self, name) #define _cx_deftypes(macro, SELF, ...) c_EXPAND(macro(SELF, __VA_ARGS__)) #define _cx_value _cx_memb(_value) @@ -38,10 +38,8 @@ #define _cx_node _cx_memb(_node) #endif -#ifdef i_type - #define i_tag i_type - #undef _i_prefix - #define _i_prefix +#ifndef i_type + #define i_type c_PASTE(_i_prefix, i_tag) #endif #ifndef i_ssize |
