[NXC] Improve Help File
Posted: 05 Feb 2011, 01:14
Here you can post examples, fixes, etc for the NXC Help File. Hopefully, John Hansen will update the help file to accommodate your improvements.
For example, ex_SetVMRunState.nxc, contains the following at the moment this post was written:
Not too helpful, eh? Try your hand at improving it. This is a little better:
*Disclaimer: I don't really understand what this code does.
There's many of these types of "examples" ** out there:
Could be improved to:
** Not critisising anyone, least of all John.
For example, ex_SetVMRunState.nxc, contains the following at the moment this post was written:
Code: Select all
SetVMRunState(0); // stopped
Code: Select all
SetVMRunState(UI_VM_IDLE); // stopped
There's many of these types of "examples" ** out there:
Code: Select all
y = ceil(x);
Code: Select all
float a = ceil(3.01);
// a == 4.0
float b = ceil(3.14);
// b == 4.0
float c = ceil(3.99);
// c == 4.0
float d = ceil(4.0);
// d == 4.0