mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
ci,cgen: fix windows tests
This commit is contained in:
parent
305c56dbf7
commit
694cac9443
@ -744,7 +744,12 @@ pub fn gen(files []&ast.File, mut table ast.Table, pref_ &pref.Preferences) GenO
|
||||
extern_out_str := g.extern_out.str()
|
||||
b.write_string(out_str)
|
||||
b.writeln('// THE END.')
|
||||
b.write_string2('\n // V postincludes:\n', g.postincludes.str())
|
||||
|
||||
postincludes_str := g.postincludes.str()
|
||||
if postincludes_str != '' {
|
||||
b.write_string2('\n // V postincludes:\n', postincludes_str)
|
||||
}
|
||||
|
||||
util.timing_measure('cgen common')
|
||||
$if trace_all_generic_fn_keys ? {
|
||||
gkeys := g.table.fn_generic_types.keys()
|
||||
|
6
vlib/v/gen/c/testdata/postinclude_header.h
vendored
6
vlib/v/gen/c/testdata/postinclude_header.h
vendored
@ -1,6 +1,10 @@
|
||||
#include <assert.h>
|
||||
|
||||
int main( void ) {
|
||||
#if defined(_WIN32)
|
||||
int WINAPI wWinMain(HINSTANCE instance, HINSTANCE prev_instance, LPWSTR cmd_line, int show_cmd){
|
||||
#else
|
||||
int main(int argc, char *argv[]) {
|
||||
#endif
|
||||
int res = no_main__f(42);
|
||||
assert(res == 987);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user