Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Foo
- {
- x: i32 = number of members in this namespace;
- }
- namespace Foo
- {
- struct Bar
- {
- }
- generate serialization function for bar in this namespace
- }
- /// VVVV
- file script:
- %Foo = create_namespace "Foo" combined_script(foo_script1, foo_script2)
- foo_script:
- create_variable "x" x_type_script x_value_script
- x_type_script:
- resolve "i32"
- x_value_script:
- get_member_count %Foo
- foo_script2:
- %Bar = create_struct "Bar" bar_script
- invoke_macro generate_serialization(%Bar)
- bar_script:
- do nothing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement