This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#ifndef HEAP_VAR_HPP | |
#define HEAP_VAR_HPP | |
/* | |
Introduction: | |
In order not to cause a stack overflow, sometimes you must define | |
large objects on the heap. But heap variables are somewhat hard to use. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TRACE: /dev/shm/test.cpp(27): int main(int, char**) | |
TRACE: /dev/shm/test.cpp(20): void where_am_I(int) | |
LOG: /dev/shm/test.cpp(22): void where_am_I(int) | |
x(3) is odd. | |
LOG: /dev/shm/test.h(10): void where_are_you() | |
Here I am! |