Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

CPP

Name: Anonymous 2011-11-27 10:04

Hi,

is it a good practice to write this #def in cpp?

#define print(X) std::cout<<X<<std::endl

so that it can be used as:

print("what " << "ever" << " I " << "want");

btw.. how do I insert sniplet of code here?

Name: Anonymous 2011-11-27 11:55

>>29
Nope. Doesn't take into account interrupts and thread context switching. cli/sti instructions don't work in user mode on modern operating systems, the interrupt flag is protected by ring 0, they're no-ops or cause a protection fault (and the fault handler generally just treats it as a no-op).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List