os_mem.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 #ifndef ICL_CORE_OS_MEM_H_INCLUDED
26 #define ICL_CORE_OS_MEM_H_INCLUDED
27 
28 #include "icl_core/os_ns.h"
29 
30 #if defined _SYSTEM_POSIX_
31 # include "icl_core/os_posix_mem.h"
32 #elif defined _SYSTEM_WIN32_
33 # include "icl_core/os_win32_mem.h"
34 #else
35 # error "No os_mem implementation defined for this platform."
36 #endif
37 
38 namespace icl_core {
39 namespace os {
40 
41 inline void *memcpy(void *dest, void *src, size_t count)
42 {
43  return ICL_CORE_OS_IMPL_NS::memcpy(dest, src, count);
44 }
45 
46 inline void *memset(void *dest, int c, size_t count)
47 {
48  return ICL_CORE_OS_IMPL_NS::memset(dest, c, count);
49 }
50 
51 }
52 }
53 
54 #endif
void * memcpy(void *dest, void *src, size_t count)
Definition: os_mem.h:41
Win32 implementation of the global memory functions.
Posix implementation of the global memory functions.
Definition of the implementation namespace for global functions.
void * memset(void *dest, int c, size_t count)
Definition: os_mem.h:46


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58