Merge pull request #14958 from s-hadinger/berry_mapping_vm_pointer

Update be_mapping documentation
This commit is contained in:
s-hadinger 2022-02-23 19:27:06 +01:00 committed by GitHub
commit abe73c3a4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ Argument type|Berry type expected
`c`|`comptr` (native pointer) `c`|`comptr` (native pointer)
`.`|**any** - no type checking for this argument `.`|**any** - no type checking for this argument
`-`|**skip** - skip this argument (handy to discard the `self` implicit argument for methods) `-`|**skip** - skip this argument (handy to discard the `self` implicit argument for methods)
`@`|**Berry VM** (virtual attribute) - adds a pointer to the Berry VM - works only as first argument
`~`|send the length of the previous bytes() buffer (or raise an exception if no length known) `~`|send the length of the previous bytes() buffer (or raise an exception if no length known)
`(<class>)`|`instance` deriving from `<class>` (i.e. of this class or any subclass `(<class>)`|`instance` deriving from `<class>` (i.e. of this class or any subclass
`^<callback_type>^`|`function` which is converted to a `C` callback by calling `cb.make_cb()`. The optional `callback_type` string is passed as second argument to `cb.make_cb()` and Berrt `arg #1` (typically `self`) is passed as 3rd argument<br>See below for callbacks `^<callback_type>^`|`function` which is converted to a `C` callback by calling `cb.make_cb()`. The optional `callback_type` string is passed as second argument to `cb.make_cb()` and Berrt `arg #1` (typically `self`) is passed as 3rd argument<br>See below for callbacks