| 71 | } |
| 72 | |
| 73 | void PatchStdlibFunctions( ParserState& state ) |
| 74 | { |
| 75 | Symbol* symbol = state.GetSymbolTable().Lookup( MakeInlineString( "lerp" ) ); |
| 76 | symbol->name = MakeInlineString( "mix" ); |
| 77 | |
| 78 | symbol = state.GetSymbolTable().Lookup( MakeInlineString( "frac" ) ); |
| 79 | symbol->name = MakeInlineString( "fract" ); |
| 80 | |
| 81 | symbol = state.GetSymbolTable().Lookup( MakeInlineString( "ddx" ) ); |
| 82 | symbol->name = MakeInlineString( "dfdx" ); |
| 83 | |
| 84 | symbol = state.GetSymbolTable().Lookup( MakeInlineString( "ddy" ) ); |
| 85 | symbol->name = MakeInlineString( "dfdy" ); |
| 86 | |
| 87 | symbol = state.GetSymbolTable().Lookup( MakeInlineString( "atan2" ) ); |
| 88 | symbol->name = MakeInlineString( "precise::atan2" ); |
| 89 | } |
| 90 | |
| 91 | void ReplaceFloatModulo( ParserState& state ) |
| 92 | { |
no test coverage detected