Differences From Artifact [d164d23b7c]:
- File
bs/builtins/api/compiler.cpp
— part of check-in
[baf9721752]
at
2019-08-19 13:43:31
on branch trunk
—
- Fixed many issues with compile time versus run time function invocations.
- Improved some error messages.
To Artifact [4cdbf5cb21]:
- File
bs/builtins/api/compiler.cpp
— part of check-in
[20d317a921]
at
2019-08-21 13:38:51
on branch trunk
—
- Automatically compile the samples during the build.
- Added a --forcecolors to the front-end, since it can't detect whether colors are allowed when launched by Ninja.
- while: if the condition evaluates to constant true and there is no break statement in the body, use a different code generation strategy to avoid generating a continuation block which makes a return statement mandatory after the loop even though it's unreachable.
| ︙ | ︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
weak_ptr< Env > pEnv = e.shared_from_this();
RegisterBuiltinFunc< Eager< void > ( bool ) >( e, "DiagnosticsEnableTraces"_sid,
[pEnv]( bool enable )
{
DiagnosticsManager::GetInstance().setTraceMode( enable );
} );
RegisterBuiltinFunc< Eager< void > ( uint32_t ) >( e, "SetExecutionBudget"_sid,
[pEnv]( uint32_t budget )
{
static bool used = false;
if( used )
| > > > > > > | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
weak_ptr< Env > pEnv = e.shared_from_this();
RegisterBuiltinFunc< Eager< void > ( bool ) >( e, "DiagnosticsEnableTraces"_sid,
[pEnv]( bool enable )
{
DiagnosticsManager::GetInstance().setTraceMode( enable );
} );
RegisterBuiltinFunc< void ( bool ) >( e, "DiagnosticsForceColors"_sid,
[pEnv]( bool enable )
{
DiagnosticsManager::GetInstance().setForceColors( enable );
} );
RegisterBuiltinFunc< Eager< void > ( uint32_t ) >( e, "SetExecutionBudget"_sid,
[pEnv]( uint32_t budget )
{
static bool used = false;
if( used )
|
| ︙ | ︙ |