Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- old way:
- allocateMemory()
- {
- a = allocate_vector(1, N);
- b = allocate_vector(1, N);
- c = allocate_vector(1, N);
- }
- deallocateMemory()
- {
- free_vector(a, 1, N);
- free_vector(b, 1, N);
- free_vector(c, 1, N);
- }
- new way (I want to expand to the above):
- ?
- {
- ALLOC_DEALLOC(a, 1, N);
- ALLOC_DEALLOC(b, 1, N);
- ALLOC_DEALLOC(c, 1, N);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement