Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
CAS.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
3// Licensed under the Apache License, Version 2.0 (see LICENSE file)
4// Official repository: https://github.com/ne-app-eu/src
5
6#ifndef _NE_CORE_SUBSYSTEM_H_
7#define _NE_CORE_SUBSYSTEM_H_
8
9#ifndef _CAS
10#define _CAS (202608L)
11#endif
12
14
19
20#ifndef CasCreateEvent
21#define CasCreateEvent(event_name, listener) EvtAddListener(event_name, listener)
22#endif
23
24#ifndef CasRemoveEvent
25#define CasRemoveEvent(event_name, listener) EvtRemoveListener(event_name, listener)
26#endif
27
28#ifndef CasDispatchEvent
29#define CasDispatchEvent(event_name, event_data) EvtDispatchEvent(event_name, event_data)
30#endif
31
34IMPORT_C VoidPtr CasAllocateHeap(SizeT sz, SInt32 flags);
35
37IMPORT_C VoidPtr CasAllocateHeapII(SizeT sz, SInt32 flags, SInt32 init);
38
40IMPORT_C Void CasDestroyHeap(_InOut VoidPtr, SInt32 zero_out);
41
43IMPORT_C Void CasDestroyHeapII(_InOut VoidPtr, SInt32 zero_out, SizeT zero_out_len);
44
45#endif // _NE_CORE_SUBSYSTEM_H_
#define sz
Definition 17.names.cpp:550
#define flags
IMPORT_C VoidPtr CasAllocateHeapII(SizeT sz, SInt32 flags, SInt32 init)
Allocate heap block with additional parameter.
IMPORT_C Void CasDestroyHeapII(_InOut VoidPtr, SInt32 zero_out, SizeT zero_out_len)
IMPORT_C Void CasDestroyHeap(_InOut VoidPtr, SInt32 zero_out)
Destroy heap block.
IMPORT_C VoidPtr CasAllocateHeap(SizeT sz, SInt32 flags)
std::mbstate_t init
Definition codecvt1.cpp:80