doc: add calling V from C to toc (#11006)
parent
19c11bace9
commit
dbacf9cfab
|
@ -131,6 +131,7 @@ For more details and troubleshooting, please visit the [vab GitHub repository](h
|
|||
* [Structs with reference fields](#structs-with-reference-fields)
|
||||
* [sizeof and __offsetof](#sizeof-and-__offsetof)
|
||||
* [Calling C from V](#calling-c-from-v)
|
||||
* [Calling V from C](#calling-v-from-c)
|
||||
* [Atomics](#atomics)
|
||||
* [Global Variables](#global-variables)
|
||||
* [Debugging](#debugging)
|
||||
|
@ -4274,7 +4275,7 @@ Since V can compile to C, calling V code from C is very easy.
|
|||
|
||||
By default all V functions have the following naming scheme in C: `[module name]__[fn_name]`.
|
||||
|
||||
For example, `fn foo() {}` in module `bar` will result in `foo__bar()`.
|
||||
For example, `fn foo() {}` in module `bar` will result in `bar__foo()`.
|
||||
|
||||
To use a custom export name, use the `[export]` attribute:
|
||||
|
||||
|
|
Loading…
Reference in New Issue