Visual Studio: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m →Quirks: Final time |
m →Quirks: Thanks for all the patience. I now know how to edit |
||
Line 220: | Line 220: | ||
extern "C" { //declare as C functions |
extern "C" { //declare as C functions |
||
#endif |
#endif |
||
disable(); //a useful example. disables interrupts (duh!) |
|||
//your functions go here |
//your functions go here |
||
#ifdef __cplusplus |
#ifdef __cplusplus |
||
} //and if it was C++ we need to close the brackets |
} //and if it was C++ we need to close the brackets |
||
Line 238: | Line 239: | ||
ret ;No decoration at all |
ret ;No decoration at all |
||
</source> |
</source> |
||
If you can't work out enable(), I'll give you a free hint: |
|||
Give up OS dev! |
|||
=== See Also === |
=== See Also === |
||
[[C++]] |
[[C++]] |