We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
E2 functions do not apply their op cost to the running chip.
Given the following code, one would expect the output to be above 5000.
@strict soundDuration("") print(opcounter())
However, the output will be a resounding 1.
Operators apply ops as expected.
@strict 1 + 2 + 3 print(opcounter())
Outputs 3.
I believe this is an oversight.
wire/lua/entities/gmod_wire_expression2/base/compiler.lua
Lines 1989 to 1992 in aab46e3
Compiler.GetOperator
Compiler.GetFunction
The text was updated successfully, but these errors were encountered:
Fix wiremod#2958
081efb4
Fix #2958 (#2959)
b66fc4e
Successfully merging a pull request may close this issue.
E2 functions do not apply their op cost to the running chip.
Given the following code, one would expect the output to be above 5000.
However, the output will be a resounding 1.
Operators apply ops as expected.
Outputs 3.
I believe this is an oversight.
wire/lua/entities/gmod_wire_expression2/base/compiler.lua
Lines 1989 to 1992 in aab46e3
As shown above,
Compiler.GetOperator
adds to the op count as expected.Compiler.GetFunction
lacks this feature.The text was updated successfully, but these errors were encountered: