Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline Variable Pointer #173

Closed
HzanRsxa2959 opened this issue Sep 5, 2021 · 1 comment
Closed

Inline Variable Pointer #173

HzanRsxa2959 opened this issue Sep 5, 2021 · 1 comment

Comments

@HzanRsxa2959
Copy link

IDK if this called 'inline' or not.

See this code:
0AB1: cleo_call @setVar 1 110~0@

The two new values:

  1. ~: Indicator to inline this variable's pointer.
  2. 110: Value of the variable set after passing its pointer. 0 if not set.

See these two examples:

  1. 0AB1: cleo_call @setVar 1 110~0@
  2. 0AB1: cleo_call @setVar 1 ~0@

They would be expanded to these before compilation:
1.
0AC7: 0@ = var 0@ pointer
0AB1: cleo_call @setVar 1 0@
0@ = 110
2.
0AC7: 0@ = var 0@ pointer
0AB1: cleo_call @setVar 1 0@
0@ = 0

@x87
Copy link
Collaborator

x87 commented Sep 5, 2021

See #45 (comment)

@x87 x87 closed this as completed Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants