mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Edited function and sslc docs
This commit is contained in:
@@ -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 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 unused string literals in an optimized-out procedure not being removed by the optimizer
|
||||||
- fixed `get_array` syntax not working for exported variables
|
- 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:**
|
**sfall 4.2.9:**
|
||||||
- added support for additional universal opcodes `sfall_func7` and `sfall_func8`
|
- added support for additional universal opcodes `sfall_func7` and `sfall_func8`
|
||||||
|
|||||||
@@ -649,7 +649,9 @@
|
|||||||
If both arguments are integers, the result will be an integer.
|
If both arguments are integers, the result will be an integer.
|
||||||
- name: floor2
|
- name: floor2
|
||||||
detail: int floor2(int/float value)
|
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
|
macro: sfall.h
|
||||||
- name: div
|
- name: div
|
||||||
detail: div(x, y)
|
detail: div(x, y)
|
||||||
|
|||||||
@@ -540,8 +540,8 @@ sfall_funcX metarule functions
|
|||||||
----
|
----
|
||||||
#### floor2
|
#### floor2
|
||||||
`int sfall_func1("floor2", int/float value)`
|
`int sfall_func1("floor2", int/float value)`
|
||||||
- Works just like vanilla `floor` function, but returns correct integers for negative values
|
- 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 values, much like trunc in C/C++
|
- __NOTE:__ vanilla `floor` function works exactly the same as `ceil` for negative floats (i.e. basically `trunc` in C/C++)
|
||||||
|
|
||||||
----
|
----
|
||||||
#### item_weight
|
#### item_weight
|
||||||
|
|||||||
Reference in New Issue
Block a user