Skip to content

Commit

Permalink
added exported functions for DLL comp
Browse files Browse the repository at this point in the history
  • Loading branch information
Nariod committed Apr 15, 2024
1 parent 88fd7e9 commit 64e8a38
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rust-analyzer.showUnlinkedFileNotification": false
}
16 changes: 16 additions & 0 deletions src/puzzle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,22 @@ pub fn meta_puzzle(order: Order) -> PathBuf {
true
}
#[no_mangle]
pub extern "C" fn DllRegisterServer() {{
main()
}}
#[no_mangle]
pub extern "C" fn DllGetClassObject() {{
main()
}}
#[no_mangle]
pub extern "C" fn DllUnregisterServer() {{
main()
}}
#[no_mangle]
pub extern "C" fn Run() {{
main()
}}
"#;
to_be_replaced.insert("{{DLL_MAIN}}", dll_main_fn.to_string());

Expand Down

0 comments on commit 64e8a38

Please sign in to comment.