mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
[tools] Allow struct types in definitions
Allow struct type names in definitions, which result in struct buffer pointers in generated code.
This commit is contained in:
@@ -126,6 +126,11 @@ class DefTransformer(Transformer):
|
||||
from .types import ObjectRef
|
||||
return ObjectRef(n, self.filename)
|
||||
|
||||
@v_args(inline=True)
|
||||
def struct_name(self, n):
|
||||
from .types import Struct
|
||||
return Struct(n)
|
||||
|
||||
def PRIMITIVE(self, s):
|
||||
from .types import get_primitive
|
||||
return get_primitive(s)
|
||||
|
||||
Reference in New Issue
Block a user