Goose  Diff

Differences From Artifact [cd4287b2b2]:

  • File bs/g0api/compiler.cpp — part of check-in [5f6197d1a0] at 2021-09-30 22:07:22 on branch trunk — Correctly generate and link executables on darwin (user: zlodo size: 9156)

To Artifact [6256d2f260]:

  • File bs/g0api/compiler.cpp — part of check-in [24415e41e4] at 2021-09-30 23:37:41 on branch trunk — Fixed a couple of bugs, but the linux version is broken for now (due to language bugs that can't be worked around and need to be fixed) (user: zlodo size: 9192)

114
115
116
117
118
119
120

121
122
123
124
125
126
127
128
                    ANYTERM( _ ), ValueToEIR( v ) );
            } );

        RegisterBuiltinFunc< Intrinsic< uint32_t ( string ) > >( e, "#Include"_sid,
            [pEnv]( auto&& c, const Value& fnameval ) -> Value
            {
                execute::VM vm;

                auto filename = FromValue< string >( Evaluate( fnameval, vm ) );
                if( !filename )
                {
                    DiagnosticsManager::GetInstance().emitErrorMessage( fnameval.locationId(),
                        "can't evaluate this to a string." );
                    return PoisonValue();
                }








>
|







114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
                    ANYTERM( _ ), ValueToEIR( v ) );
            } );

        RegisterBuiltinFunc< Intrinsic< uint32_t ( string ) > >( e, "#Include"_sid,
            [pEnv]( auto&& c, const Value& fnameval ) -> Value
            {
                execute::VM vm;
                auto fname = Evaluate( fnameval, vm );
                auto filename = FromValue< string >( fname );
                if( !filename )
                {
                    DiagnosticsManager::GetInstance().emitErrorMessage( fnameval.locationId(),
                        "can't evaluate this to a string." );
                    return PoisonValue();
                }