moved freejs back into bindings
This commit is contained in:
parent
585056ef5f
commit
d1c0fef883
1 changed files with 1 additions and 5 deletions
|
|
@ -22,12 +22,8 @@ module;
|
||||||
#include <string>
|
#include <string>
|
||||||
export module Crafter.CppDOM:Bindings;
|
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 {
|
export namespace Crafter::CppDOM::Bindings {
|
||||||
|
__attribute__((import_module("env"), import_name("freeJs"))) void FreeJs(void* ptr);
|
||||||
__attribute__((import_module("env"), import_name("getElementById"))) void* GetElementById(const char* id, std::size_t idLenght);
|
__attribute__((import_module("env"), import_name("getElementById"))) void* GetElementById(const char* id, std::size_t idLenght);
|
||||||
inline void* GetElementById(const std::string& id) {
|
inline void* GetElementById(const std::string& id) {
|
||||||
return GetElementById(id.c_str(), id.size());
|
return GetElementById(id.c_str(), id.size());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue