Skip to content

Commit 2a0ca51

Browse files
committed
Document some more op return values
1 parent 3d50752 commit 2a0ca51

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/ops.markdown

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,7 +2262,7 @@ Return the current lexpad.
22622262
Given a context, return the outer context, or null.
22632263

22642264
## lexprimspec
2265-
* `lexprimspec(LexPad $pad, str $name)`
2265+
* `lexprimspec(LexPad $pad, str $name --> int)`
22662266

22672267
Given a lexpad and a name, return the name's primitive type.
22682268

@@ -2480,13 +2480,13 @@ for debugging.
24802480
Exit nqp, using the given status as the compiler's exit value.
24812481

24822482
## getenvhash
2483-
* `getenvhash()`
2483+
* `getenvhash(--> Mu)`
24842484

24852485
Returns a hash containing the environment variables.
24862486
Changing the hash doesn't affect the environment variables
24872487

24882488
## backendconfig
2489-
* `backendconfig()`
2489+
* `backendconfig(--> Mu)`
24902490

24912491
Returns a hash containing backend-specific information, like backend-version,
24922492
configure and build flags.
@@ -2497,7 +2497,7 @@ configure and build flags.
24972497
Return the current process id, an int.
24982498

24992499
## jvmclasspaths `jvm`
2500-
* `jvmclasspaths()`
2500+
* `jvmclasspaths(--> Mu)`
25012501

25022502
Converts the JVM property `java.class.path` into a list of paths, returns it.
25032503

@@ -2682,21 +2682,21 @@ value originally at the location (which can be compared with `$expected` to
26822682
see if the operation was a success).
26832683

26842684
## atomicinc_i `moar`
2685-
* `atomicinc_i(NativeIntRef $i)`
2685+
* `atomicinc_i(NativeIntRef $i --> int)`
26862686

26872687
Takes an object with the `NativeRef` representation, which must point to an
26882688
integer of the machine's atomic operation size. Performs an atomic increment
26892689
of the referenced integer. Returns the value **before** it was incremented.
26902690

26912691
## atomicdec_i `moar`
2692-
* `atomicdec_i(NativeIntRef $i)`
2692+
* `atomicdec_i(NativeIntRef $i --> int)`
26932693

26942694
Takes an object with the `NativeRef` representation, which must point to an
26952695
integer of the machine's atomic operation size. Performs an atomic decrement
26962696
of the referenced integer. Returns the value **before** it was decremented.
26972697

26982698
## atomicadd_i `moar`
2699-
* `atomicadd_i(NativeIntRef $i, int $value)`
2699+
* `atomicadd_i(NativeIntRef $i, int $value --> int)`
27002700

27012701
Takes an object with the `NativeRef` representation, which must point to an
27022702
integer of the machine's atomic operation size. Performs an atomic addition of
@@ -2712,7 +2712,7 @@ atomic load (that is, with appropriate barriering to ensure the latest value
27122712
is read). Performs the atomic load, and returns the loaded object.
27132713

27142714
## atomicload_i `moar`
2715-
* `atomicload_i(NativeIntRef $i)`
2715+
* `atomicload_i(NativeIntRef $i --> int)`
27162716

27172717
Takes an object with the `NativeRef` representation, which must point to an
27182718
integer of the machine's atomic operation size. Performs an atomic load (that

0 commit comments

Comments
 (0)