Comments (3)
Test Case:
see the atteched file. m.c and mm.acc
to run the test simply type:
>tacc m.c mm.acc //tacc compile m.c and mm.acc
>./a.out
Expected Output:
calling foo
a is '2'
calling foo
a is '3'
since function foo is called by the function pointer pt2Fun.
Actual Output:
a is '2'
calling foo
a is '3'
The first call of function foo is not taking in consider by the compiler.
Therefore, there is an error occur.
Original comment by [email protected]
on 13 May 2010 at 9:38
Attachments:
from aspectc.
Original comment by [email protected]
on 14 May 2010 at 3:56
from aspectc.
This problem can be resolved by callp() instead of call(). callp() is for
function
pointers and call() is for direct call to the function.
If you want to execute code in ACC when a function is called through both
function
pointer and direct calls, you can use lines like:
before(): callp(int foo(int)) || call(int foo(int))
to solve the problem.
Original comment by [email protected]
on 18 May 2010 at 8:36
- Changed state: Fixed
from aspectc.
Related Issues (16)
- ACC in Ubuntu 9.10 HOT 4
- Incompatible with 64bit system HOT 2
- SET /GET pointcuts doesnโt accept array. HOT 1
- SET/GET pointcut doesn't support local variables HOT 1
- SET /GET pointcuts only accept *(a) but not *a
- Problem with GCC optimization option
- ACC doesn't build on Mac OS X 10.6 HOT 1
- Tests failing on ubuntu server 8.04 HOT 3
- [deleted issue]
- Acc_gcc command line error HOT 1
- Dependency of the ACC is broken when acc_make clean is executed HOT 1
- [deleted issue]
- [deleted issue]
- Conflict between critical file names HOT 1
- tacc command cannot accept .acc files alone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspectc.