Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow export load at runtime #263

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ecsact/runtime/async.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
# if defined(ECSACT_ASYNC_API)
# define ECSACT_ASYNC_API_FN(ret, name) ECSACT_ASYNC_API ret name
# elif defined(ECSACT_ASYNC_API_LOAD_AT_RUNTIME)
# define ECSACT_ASYNC_API_FN(ret, name) ECSACT_EXTERN ret(*name)
# if defined(ECSACT_ASYNC_API_EXPORT)
# define ECSACT_ASYNC_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret(*name)
# else
# define ECSACT_ASYNC_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_IMPORT("env", #name) ret(*name)
# endif
# elif defined(ECSACT_ASYNC_API_EXPORT)
# define ECSACT_ASYNC_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret name
Expand Down
8 changes: 7 additions & 1 deletion ecsact/runtime/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
# if defined(ECSACT_CORE_API)
# define ECSACT_CORE_API_FN(ret, name) ECSACT_CORE_API ret name
# elif defined(ECSACT_CORE_API_LOAD_AT_RUNTIME)
# define ECSACT_CORE_API_FN(ret, name) ECSACT_EXTERN ret(*name)
# if defined(ECSACT_CORE_API_EXPORT)
# define ECSACT_CORE_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret(*name)
# else
# define ECSACT_CORE_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_IMPORT("env", #name) ret(*name)
# endif
# elif defined(ECSACT_CORE_API_EXPORT)
# define ECSACT_CORE_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret name
Expand Down
8 changes: 7 additions & 1 deletion ecsact/runtime/dynamic.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
# if defined(ECSACT_DYNAMIC_API)
# define ECSACT_DYNAMIC_API_FN(ret, name) ECSACT_DYNAMIC_API ret name
# elif defined(ECSACT_DYNAMIC_API_LOAD_AT_RUNTIME)
# define ECSACT_DYNAMIC_API_FN(ret, name) ECSACT_EXTERN ret(*name)
# if defined(ECSACT_DYNAMIC_API_EXPORT)
# define ECSACT_DYNAMIC_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret(*name)
# else
# define ECSACT_DYNAMIC_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_IMPORT("env", #name) ret(*name)
# endif
# elif defined(ECSACT_DYNAMIC_API_EXPORT)
# define ECSACT_DYNAMIC_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret name
Expand Down
8 changes: 7 additions & 1 deletion ecsact/runtime/meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
# if defined(ECSACT_META_API)
# define ECSACT_META_API_FN(ret, name) ECSACT_META_API ret name
# elif defined(ECSACT_META_API_LOAD_AT_RUNTIME)
# define ECSACT_META_API_FN(ret, name) ECSACT_EXTERN ret(*name)
# if defined(ECSACT_META_API_EXPORT)
# define ECSACT_META_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret(*name)
# else
# define ECSACT_META_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_IMPORT("env", #name) ret(*name)
# endif
# elif defined(ECSACT_META_API_EXPORT)
# define ECSACT_META_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret name
Expand Down
8 changes: 7 additions & 1 deletion ecsact/runtime/serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
# if defined(ECSACT_SERIALIZE_API)
# define ECSACT_SERIALIZE_API_FN(ret, name) ECSACT_SERIALIZE_API ret name
# elif defined(ECSACT_SERIALIZE_API_LOAD_AT_RUNTIME)
# define ECSACT_SERIALIZE_API_FN(ret, name) ECSACT_EXTERN ret(*name)
# if defined(ECSACT_SERIALIZE_API_EXPORT)
# define ECSACT_SERIALIZE_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret(*name)
# else
# define ECSACT_SERIALIZE_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_IMPORT("env", #name) ret(*name)
# endif
# elif defined(ECSACT_SERIALIZE_API_EXPORT)
# define ECSACT_SERIALIZE_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret name
Expand Down
8 changes: 7 additions & 1 deletion ecsact/runtime/static.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
# if defined(ECSACT_STATIC_API)
# define ECSACT_STATIC_API_FN(ret, name) ECSACT_STATIC_API ret name
# elif defined(ECSACT_STATIC_API_LOAD_AT_RUNTIME)
# define ECSACT_STATIC_API_FN(ret, name) ECSACT_EXTERN ret(*name)
# if defined(ECSACT_STATIC_API_EXPORT)
# define ECSACT_STATIC_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret(*name)
# else
# define ECSACT_STATIC_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_IMPORT("env", #name) ret(*name)
# endif
# elif defined(ECSACT_STATIC_API_EXPORT)
# define ECSACT_STATIC_API_FN(ret, name) \
ECSACT_EXTERN ECSACT_EXPORT(#name) ret name
Expand Down
Loading