void Repro(uint& val)
{
val = 1;
}
Then pass const (literal) to the function:
Repro(0);
Compiler does not say anything, but runtime crashes.
void Repro(uint& val)
{
val = 1;
}
Then pass const (literal) to the function:
Repro(0);
Compiler does not say anything, but runtime crashes.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game