fcml 1.2.2
fcml_env.h
Go to the documentation of this file.
1/*
2 * FCML - Free Code Manipulation Library.
3 * Copyright (C) 2010-2019 Slawomir Wojtasiak
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
26#ifndef FCML_ENV_H_
27#define FCML_ENV_H_
28
29#include "fcml_types.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
41typedef fcml_ptr (*fcml_fp_env_memory_alloc_handler)(fcml_usize size);
42
50typedef fcml_ptr (*fcml_fp_env_memory_realloc_handler)(fcml_ptr ptr,
51 fcml_usize size);
52
58typedef void (*fcml_fp_env_memory_free_handler)(fcml_ptr memory_block);
59
66LIB_EXPORT fcml_fp_env_memory_alloc_handler LIB_CALL
69
77LIB_EXPORT fcml_fp_env_memory_realloc_handler LIB_CALL
80
88LIB_EXPORT fcml_fp_env_memory_free_handler LIB_CALL
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif /* FCML_ENV_H_ */
LIB_EXPORT fcml_fp_env_memory_realloc_handler LIB_CALL fcml_fn_env_register_memory_realloc_handler(fcml_fp_env_memory_realloc_handler handler)
Registers the new dedicated handler responsible for reallocating memory for the sake of internal FCML...
LIB_EXPORT fcml_fp_env_memory_free_handler LIB_CALL fcml_fn_env_register_memory_free_handler(fcml_fp_env_memory_free_handler handler)
Registers the new dedicated handler responsible for deallocating the memory for the sake of internal ...
fcml_ptr(* fcml_fp_env_memory_alloc_handler)(fcml_usize size)
Memory allocator handler function pointer declaration.
Definition: fcml_env.h:41
fcml_ptr(* fcml_fp_env_memory_realloc_handler)(fcml_ptr ptr, fcml_usize size)
Memory reallocator handler function pointer declaration.
Definition: fcml_env.h:50
LIB_EXPORT fcml_fp_env_memory_alloc_handler LIB_CALL fcml_fn_env_register_memory_alloc_handler(fcml_fp_env_memory_alloc_handler handler)
Registers the new dedicated handler responsible for allocating memory for the sake of internal FCML i...
void(* fcml_fp_env_memory_free_handler)(fcml_ptr memory_block)
Memory deallocator handler function pointer declaration.
Definition: fcml_env.h:58
Types declarations.