update freejs namespace
This commit is contained in:
parent
0d39cab19f
commit
585056ef5f
1 changed files with 4 additions and 1 deletions
|
|
@ -23,6 +23,10 @@ module;
|
|||
export module Crafter.CppDOM:Bindings;
|
||||
|
||||
|
||||
export namespace Crafter::CppDOM {
|
||||
__attribute__((import_module("env"), import_name("freeJs"))) void FreeJs(void* ptr);
|
||||
}
|
||||
|
||||
export namespace Crafter::CppDOM::Bindings {
|
||||
__attribute__((import_module("env"), import_name("getElementById"))) void* GetElementById(const char* id, std::size_t idLenght);
|
||||
inline void* GetElementById(const std::string& id) {
|
||||
|
|
@ -32,5 +36,4 @@ export namespace Crafter::CppDOM::Bindings {
|
|||
inline void SetInnerHTML(void* ptr, const std::string& html) {
|
||||
SetInnerHTML(ptr, html.c_str(), html.size());
|
||||
}
|
||||
__attribute__((import_module("env"), import_name("freeJs"))) void FreeJs(void* ptr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue