On 22/09/12 21:49, Jonathan M Davis wrote:
On Saturday, September 22, 2012 21:19:27 Maxim Fomin wrote:
Privilege instruction is an assembly instruction which can be
executed only at a certain executive process context, typically
os kernel. AFAIK assert(false) was claimed to be implemented by
dmd
On 09/22/2012 11:33 AM, simendsjo wrote:
> assert(false, "aoeu"); // with message, object.error: Privileged
Yep, Dvorak keyboard rules! ;)
Ali
On Saturday, September 22, 2012 21:19:27 Maxim Fomin wrote:
> Privilege instruction is an assembly instruction which can be
> executed only at a certain executive process context, typically
> os kernel. AFAIK assert(false) was claimed to be implemented by
> dmd as a halt instruction, which is privi
Privilege instruction is an assembly instruction which can be
executed only at a certain executive process context, typically
os kernel. AFAIK assert(false) was claimed to be implemented by
dmd as a halt instruction, which is privileged one.
However, compiled code shows that dmd generates int
this() {
setAssertHandler(&myAssertHandler);
f();
}
version(unittest) {
void f() {
//assert(false); // without message, object.error:
Breakpoint
assert(false, "aoeu"); // with message, object.error:
Privileged Instruction
}
}