Skip to content

Commit

Permalink
fix name in compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Jan 1, 2025
1 parent d5616db commit eae04df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/acts/compiler/gsc_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6093,11 +6093,13 @@ namespace acts::compiler {
}

// build csc/gsc
opt.config.name = opt.nameServer;
int ret = produceFile(false, inputs);

if (ret) {
return ret;
}
opt.config.name = opt.nameClient;
return produceFile(true, inputs);
}
}
Expand Down
11 changes: 11 additions & 0 deletions test/gsc-compiler/count.gsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#using scripts\core_common\array_shared.gsc;
#using scripts\core_common\system_shared.gsc;
#using scripts\core_common\callbacks_shared.gsc;

#namespace count_test;

function private autoexec __init__system__() {
system::register(#"count_test", undefined, &__init__, undefined);
}

function private __init__() {}

0 comments on commit eae04df

Please sign in to comment.