0
저는 AOP에서 우분투 가상 박스에서 AspeCt를 사용하고 있습니다. 내 .acc
코드 :예상되는 선언 지정자 오류?
before(): execution(int main(void)) {
printf("Before test successful!\n");
}
after(): execution(int main(void)) {
printf("world!\n");
}
before():
call(foo) {
printf("Before Foo!\n");
}
내 .mc
코드 :
void foo(void) {
printf("foo\n");
}
int main() {
printf("Hello everyone ");
foo();
return 0;
}
그리고 오류 메시지 :
1:13: error: expected declaration specifiers before ':' token
4:1: error : expected declaration specifiers before 'after'
7:1: error: expected declaration specifiers before 'before'
12:1 expected '{' at end of input
도와주세요? 나는 이것을 고치는 방법에 난처 해 해요! 감사합니다.