comparison dmd/AsmStatement.d @ 130:60bb0fe4563e

dmdfe 2.037 first main iteration
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Thu, 09 Sep 2010 22:51:44 +0100
parents e28b18c23469
children af724d3510d7
comparison
equal deleted inserted replaced
129:010eb8f0e18d 130:60bb0fe4563e
57 } 57 }
58 58
59 override Statement semantic(Scope sc) 59 override Statement semantic(Scope sc)
60 { 60 {
61 //printf("AsmStatement.semantic()\n"); 61 //printf("AsmStatement.semantic()\n");
62 62 //static if (true) {
63 if (global.params.safe && !sc.module_.safe) 63 if (sc.func && sc.func.isSafe())
64 { 64 error("inline assembler not allowed in @safe function %s", sc.func.toChars());
65 error("inline assembler not allowed in safe mode"); 65 //} else {
66 } 66 // if (global.params.safe && !sc.module_.safe)
67 67 // {
68 // error("inline assembler not allowed in safe mode");
69 // }
70 //}
71
68 OP* o; 72 OP* o;
69 OPND* o1 = null; 73 OPND* o1 = null;
70 OPND* o2 = null; 74 OPND* o2 = null;
71 OPND* o3 = null; 75 OPND* o3 = null;
72 76