mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
fix loadModuleFn description in header
This commit is contained in:
@ -188,9 +188,9 @@ typedef struct
|
|||||||
// Since Wren does not talk directly to the file system, it relies on the
|
// Since Wren does not talk directly to the file system, it relies on the
|
||||||
// embedder to physically locate and read the source code for a module. The
|
// embedder to physically locate and read the source code for a module. The
|
||||||
// first time an import appears, Wren will call this and pass in the name of
|
// first time an import appears, Wren will call this and pass in the name of
|
||||||
// the module being imported. The VM should return the soure code for that
|
// the module being imported. The method will return a result, which contains
|
||||||
// module. Memory for the source should be allocated using [reallocateFn] and
|
// the source code for that module. Memory for the source is owned by the
|
||||||
// Wren will take ownership over it.
|
// host application, and can be freed using the onComplete callback.
|
||||||
//
|
//
|
||||||
// This will only be called once for any given module name. Wren caches the
|
// This will only be called once for any given module name. Wren caches the
|
||||||
// result internally so subsequent imports of the same module will use the
|
// result internally so subsequent imports of the same module will use the
|
||||||
|
|||||||
Reference in New Issue
Block a user