GteWrapper.cpp
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #include <GTEnginePCH.h>
9 #include <LowLevel/GteWrapper.h>
10 #include <cstring>
11 #include <cwchar>
12 
13 namespace gte
14 {
15 
16 void Memcpy(void* target, void const* source, size_t count)
17 {
18 #if defined(__MSWINDOWS__)
19  errno_t result = memcpy_s(target, count, source, count);
20  (void)result; // 0 on success
21 #else
22  memcpy(target, source, count);
23 #endif
24 }
25 
26 void Memcpy(wchar_t* target, wchar_t const* source, size_t count)
27 {
28 #if defined(__MSWINDOWS__)
29  errno_t result = wmemcpy_s(target, count, source, count);
30  (void)result; // 0 on success
31 #else
32  wmemcpy(target, source, count);
33 #endif
34 }
35 
36 }
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLenum target
Definition: glcorearb.h:1662
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:798
GLint GLsizei count
Definition: glcorearb.h:400
void Memcpy(void *target, void const *source, size_t count)
Definition: GteWrapper.cpp:16
GLuint64EXT * result
Definition: glext.h:10003


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:02