al_malloc
#define al_malloc(n) \
(al_malloc_with_context((n), __LINE__, __FILE__, __func__))
Introduced in 5.0.0
Like malloc() in the C standard library, but the implementation may be overridden.
This is a macro.
See also: al_free, al_realloc, al_calloc, al_malloc_with_context, al_set_memory_interface
Most helpful discussions:
- Creating new samples using std::vector (1)
- Steam Client interference / OpenGL
- open directories with special characters
- Crash in example(s?) ; ex_threads,
- step calculation for sampled sin sample
- Allegro seems to be taking double ram for the video bitmaps.
- Joystick Event Injection
- Native file dialog patch
- Experiments: Allegro + Emscripten.
- Probably a memory leak when forcing opengl on windows
Other recent discussions:
- [A5] Beep sound function.
- why should I use al_malloc() over malloc()?
- [A5] simulate_keypress()?
- basic dx_ball project(like breakout)
- `al_show_native_message_box` buttons argument ignored
- [A5] Memory Leak - al_fopen_interface
- Results of static analysis of Allegro sources [5.1] (errors & suspicious places)
- test_driver: renamed image refuses to load
- How much memory does this use?
- config_section=old