fcml
1.3.0
Toggle main menu visibility
Loading...
Searching...
No Matches
fcml_env.h
Go to the documentation of this file.
1
/*
2
* FCML - Free Code Manipulation Library.
3
* Copyright (C) 2010-2020 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
25
26
#ifndef FCML_ENV_H_
27
#define FCML_ENV_H_
28
29
#include "
fcml_types.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
41
typedef
fcml_ptr (*
fcml_fp_env_memory_alloc_handler
)(fcml_usize size);
42
50
typedef
fcml_ptr (*
fcml_fp_env_memory_realloc_handler
)(fcml_ptr ptr,
51
fcml_usize size);
52
58
typedef
void (*
fcml_fp_env_memory_free_handler
)(fcml_ptr memory_block);
59
66
LIB_EXPORT
fcml_fp_env_memory_alloc_handler
LIB_CALL
67
fcml_fn_env_register_memory_alloc_handler
(
68
fcml_fp_env_memory_alloc_handler
handler);
69
77
LIB_EXPORT
fcml_fp_env_memory_realloc_handler
LIB_CALL
78
fcml_fn_env_register_memory_realloc_handler
(
79
fcml_fp_env_memory_realloc_handler
handler);
80
88
LIB_EXPORT
fcml_fp_env_memory_free_handler
LIB_CALL
89
fcml_fn_env_register_memory_free_handler
(
90
fcml_fp_env_memory_free_handler
handler);
91
92
#ifdef __cplusplus
93
}
94
#endif
95
96
#endif
/* FCML_ENV_H_ */
fcml_fn_env_register_memory_realloc_handler
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...
fcml_fn_env_register_memory_free_handler
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_fp_env_memory_alloc_handler
fcml_ptr(* fcml_fp_env_memory_alloc_handler)(fcml_usize size)
Memory allocator handler function pointer declaration.
Definition
fcml_env.h:41
fcml_fp_env_memory_realloc_handler
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
fcml_fn_env_register_memory_alloc_handler
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...
fcml_fp_env_memory_free_handler
void(* fcml_fp_env_memory_free_handler)(fcml_ptr memory_block)
Memory deallocator handler function pointer declaration.
Definition
fcml_env.h:58
fcml_types.h
Types declarations.
include
fcml_env.h
Generated by
1.17.0