Edited function and sslc docs

This commit is contained in:
NovaRain
2023-07-17 20:53:50 +08:00
parent 6eeb674641
commit 6d66bfffb0
3 changed files with 7 additions and 3 deletions
@@ -357,6 +357,8 @@ There are several changes in this version of sslc which may result in problems f
- fixed unused arguments in a procedure being removed incorrectly by the optimizer
- fixed unused string literals in an optimized-out procedure not being removed by the optimizer
- fixed `get_array` syntax not working for exported variables
- fixed optional arguments not working for imported procedures
- fixed compiler crash when an exported procedure has no body
**sfall 4.2.9:**
- added support for additional universal opcodes `sfall_func7` and `sfall_func8`
+3 -1
View File
@@ -649,7 +649,9 @@
If both arguments are integers, the result will be an integer.
- name: floor2
detail: int floor2(int/float value)
doc: Works just like vanilla floor function, but returns correct integers for negative values (vanilla floor function works exactly the same as `ceil` for negative values, much like `trunc` in C/C++).
doc: |
Works just like vanilla floor function, but returns correct integers for negative floats.
- __NOTE:__ vanilla `floor` function works exactly the same as `ceil` for negative floats (i.e. basically `trunc` in C/C++).
macro: sfall.h
- name: div
detail: div(x, y)
+2 -2
View File
@@ -540,8 +540,8 @@ sfall_funcX metarule functions
----
#### floor2
`int sfall_func1("floor2", int/float value)`
- Works just like vanilla `floor` function, but returns correct integers for negative values
- __NOTE:__ vanilla `floor` function works exactly the same as ceil for negative values, much like trunc in C/C++
- Works just like vanilla `floor` function, but returns correct integers for negative floats
- __NOTE:__ vanilla `floor` function works exactly the same as `ceil` for negative floats (i.e. basically `trunc` in C/C++)
----
#### item_weight