Trim compiled unit export surface
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
namespace {
|
||||
|
||||
const u64 UCE_UNIT_ABI_VERSION = 8;
|
||||
const u64 UCE_UNIT_ABI_VERSION = 9;
|
||||
|
||||
struct SharedUnitFilesystemState
|
||||
{
|
||||
|
||||
+14
-8
@@ -1,13 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#define RENDER(X) extern "C" void __uce_render(X)
|
||||
#define COMPONENT(X) extern "C" void __uce_component(X)
|
||||
#define ONCE(X) extern "C" void __uce_once(X)
|
||||
#define INIT(X) extern "C" void __uce_init(X)
|
||||
#define WS(X) extern "C" void __uce_websocket(X)
|
||||
#define CLI(X) extern "C" void __uce_cli(X)
|
||||
#define SERVE_HTTP(X) extern "C" void __uce_serve_http(X)
|
||||
#define EXPORT extern "C"
|
||||
#if defined(__UCE_WASM_UNIT__)
|
||||
#define UCE_UNIT_EXPORT __attribute__((visibility("default")))
|
||||
#else
|
||||
#define UCE_UNIT_EXPORT
|
||||
#endif
|
||||
|
||||
#define RENDER(X) extern "C" UCE_UNIT_EXPORT void __uce_render(X)
|
||||
#define COMPONENT(X) extern "C" UCE_UNIT_EXPORT void __uce_component(X)
|
||||
#define ONCE(X) extern "C" UCE_UNIT_EXPORT void __uce_once(X)
|
||||
#define INIT(X) extern "C" UCE_UNIT_EXPORT void __uce_init(X)
|
||||
#define WS(X) extern "C" UCE_UNIT_EXPORT void __uce_websocket(X)
|
||||
#define CLI(X) extern "C" UCE_UNIT_EXPORT void __uce_cli(X)
|
||||
#define SERVE_HTTP(X) extern "C" UCE_UNIT_EXPORT void __uce_serve_http(X)
|
||||
#define EXPORT extern "C" UCE_UNIT_EXPORT
|
||||
|
||||
String preprocess_shared_unit(Request* context, SharedUnit* su);
|
||||
String compiler_generated_cpp_path(Request* context, String source_file);
|
||||
|
||||
Reference in New Issue
Block a user