int.h File Reference
Integer Object Type.
More...
Go to the source code of this file.
Detailed Description
Integer Object Type.
Integer object type header.
Definition in file int.h.
Typedef Documentation
Integer obj
32b signed integer
Function Documentation
Implements the UNARY_INVERT bcode.
Creates a new int with a value that is the bitwise inversion of the given int.
- Parameters:
-
| pobj | Pointer to integer to invert |
| r_pint | Return by reference; new integer |
- Returns:
- Return status
Definition at line 115 of file int.c.
Creates a duplicate Integer object
Created specifically for the index value in FOR_LOOP.
- Parameters:
-
| pint | Pointer to int obj to duplicate. |
| r_pint | Return by ref, ptr to new int |
- Returns:
- Return status
Definition at line 34 of file int.c.
Implements the UNARY_NEGATIVE bcode.
Creates a new int with a value that is the negative of the given int.
- Parameters:
-
| pobj | Pointer to target object |
| r_pint | Return by ref, ptr to int |
- Returns:
- Return status
Definition at line 98 of file int.c.
Creates a new Integer object
- Parameters:
-
| val | Value to assign int (signed 32-bit). |
| r_pint | Return by ref, ptr to new int |
- Returns:
- Return status
Definition at line 50 of file int.c.
Implements the UNARY_POSITIVE bcode.
Creates a new int with the same value as the given int.
- Parameters:
-
| pobj | Pointer to integer object |
| r_pint | Return by reference, ptr to int |
- Returns:
- Return status
Definition at line 81 of file int.c.
Returns by reference an integer that is x raised to the power of y.
- Parameters:
-
| px | The integer base |
| py | The integer exponent |
| r_pn | Return by reference; New integer with value of x ** y |
- Returns:
- Return status
Definition at line 217 of file int.c.