Defines | Functions

kaydara.h File Reference

#include <karch/arch.h>
#include <karch/types.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>

Go to the source code of this file.

Defines

#define  K_KERNEL_VERSION   12000
#define  K_NO_PROJECTSETTINGS
#define  MEMORY_DEBUG
#define  KPROFILING_CODE_ENABLE
#define  K_ENABLE_STREAM_FCURVE
#define  NULL   ((void *)0)
#define  K_MAX_TEXT_LENGTH   1020
#define  K_FORWARD(ClassName)   class ClassName; typedef ClassName *H##ClassName
#define  K_FORWARD_HI(ClassName)   class ClassName; typedef ClassName *H##ClassName; typedef H##ClassName HI##ClassName
#define  K_SAFE_FREE_PTR(p)   if( p ){ free( p ); (p) = NULL; }
#define  K_SAFE_DELETE_PTR(p)   if( p ){ delete (p); (p) = NULL; }
#define  K_SAFE_DELETE_ARRAY_PTR(a)   if( a ){ delete [] (a); (a) = NULL; }
#define  K_SAFE_DESTROY_OBJECT(p)   { if( p ){ (p)->Destroy(); (p) = NULL; } }
#define  _MSC_EMULATOR
#define  override
#define  sealed
#define  abstract   =0
#define  _TRUNCATE   ((size_t)-1)
#define  strtok_s(token, sep, context)   strtok( token,sep )
#define  strncat_s(dst, bufsize, src, len)   strncat( dst,src,len )
#define  _stricmp   strcasecmp
#define  strcmpi   strcasecmp
#define  _strcmpi   strcasecmp
#define  stricmp   strcasecmp
#define  strncmpi   strncasecmp
#define  strnicmp   strncasecmp
#define  _atoi64(str)   strtoll( str,NULL,10 )
#define  _isnan(x)   isnan( x )
#define  itoa   _itoa
#define  K_LOCAL_CLASS
#define  K_DEPRECATED

Functions

int  strcpy_s (char *dst, size_t bufsize, const char *src)
template<size_t bufsize>
int  strcpy_s (char(&dst)[bufsize], const char *src)
int  strncpy_s (char *dst, size_t bufsize, const char *src, size_t count)
template<size_t bufsize>
int  strncpy_s (char(&dst)[bufsize], const char *src, size_t count)
int  vsprintf_s (char *buffer, size_t bufsize, const char *format, va_list args)
template<size_t bufsize>
int  vsprintf_s (char(&buffer)[bufsize], const char *format, va_list args)
int  sprintf_s (char *buffer, size_t bufsize, const char *format,...)
template<size_t bufsize>
int  sprintf_s (char(&buffer)[bufsize], const char *format,...)
int  strcat_s (char *dst, size_t bufsize, const char *src)
template<size_t bufsize>
int  strcat_s (char(&dst)[bufsize], const char *src)
char *  _itoa (int pValue, char *pString, int pRadix)

Define Documentation

#define K_KERNEL_VERSION   12000

Definition at line 40 of file kaydara.h.

#define K_NO_PROJECTSETTINGS

Definition at line 45 of file kaydara.h.

#define MEMORY_DEBUG

Definition at line 104 of file kaydara.h.

#define KPROFILING_CODE_ENABLE

Definition at line 108 of file kaydara.h.

#define K_ENABLE_STREAM_FCURVE

Definition at line 141 of file kaydara.h.

#define NULL   ((void *)0)

Definition at line 161 of file kaydara.h.

#define K_MAX_TEXT_LENGTH   1020

Definition at line 170 of file kaydara.h.

#define K_FORWARD (   ClassName )    class ClassName; typedef ClassName *H##ClassName

Definition at line 172 of file kaydara.h.

#define K_FORWARD_HI (   ClassName )    class ClassName; typedef ClassName *H##ClassName; typedef H##ClassName HI##ClassName

Definition at line 173 of file kaydara.h.

#define K_SAFE_FREE_PTR (   p )    if( p ){ free( p ); (p) = NULL; }

Definition at line 175 of file kaydara.h.

#define K_SAFE_DELETE_PTR (   p )    if( p ){ delete (p); (p) = NULL; }

Definition at line 176 of file kaydara.h.

#define K_SAFE_DELETE_ARRAY_PTR (   a )    if( a ){ delete [] (a); (a) = NULL; }

Definition at line 177 of file kaydara.h.

#define K_SAFE_DESTROY_OBJECT (   p )    { if( p ){ (p)->Destroy(); (p) = NULL; } }

Definition at line 179 of file kaydara.h.

#define _MSC_EMULATOR

Definition at line 226 of file kaydara.h.

#define override

Definition at line 228 of file kaydara.h.

#define sealed

Definition at line 229 of file kaydara.h.

#define abstract   =0

Definition at line 230 of file kaydara.h.

#define _TRUNCATE   ((size_t)-1)

Definition at line 233 of file kaydara.h.

#define strtok_s (   token,
  sep,
  context 
)    strtok( token,sep )

Definition at line 292 of file kaydara.h.

#define strncat_s (   dst,
  bufsize,
  src,
  len 
)    strncat( dst,src,len )

Definition at line 296 of file kaydara.h.

#define _stricmp   strcasecmp

Definition at line 299 of file kaydara.h.

#define strcmpi   strcasecmp

Definition at line 302 of file kaydara.h.

#define _strcmpi   strcasecmp

Definition at line 305 of file kaydara.h.

#define stricmp   strcasecmp

Definition at line 308 of file kaydara.h.

#define strncmpi   strncasecmp

Definition at line 311 of file kaydara.h.

#define strnicmp   strncasecmp

Definition at line 314 of file kaydara.h.

#define _atoi64 (   str )    strtoll( str,NULL,10 )

Definition at line 318 of file kaydara.h.

#define _isnan (   x )    isnan( x )

Definition at line 322 of file kaydara.h.

#define itoa   _itoa

Definition at line 333 of file kaydara.h.

#define K_LOCAL_CLASS

Definition at line 372 of file kaydara.h.

#define K_DEPRECATED

Definition at line 397 of file kaydara.h.


Function Documentation

int strcpy_s ( char *  dst,
size_t  bufsize,
const char *  src 
) [inline]

Definition at line 235 of file kaydara.h.

    {
        strcpy( dst,src );
        return 0;
    }
int strcpy_s ( char(&)  dst[bufsize],
const char *  src 
)

Definition at line 240 of file kaydara.h.

    {
        return strcpy_s( dst,bufsize,src );
    }
int strncpy_s ( char *  dst,
size_t  bufsize,
const char *  src,
size_t  count 
) [inline]

Definition at line 245 of file kaydara.h.

    {
        strncpy( dst,src,count );
        return 0;
    }
int strncpy_s ( char(&)  dst[bufsize],
const char *  src,
size_t  count 
)

Definition at line 250 of file kaydara.h.

    {
        return strncpy_s( dst,bufsize,src,count );
    }
int vsprintf_s ( char *  buffer,
size_t  bufsize,
const char *  format,
va_list  args 
) [inline]

Definition at line 255 of file kaydara.h.

    {
        return vsprintf( buffer,format, args ); 
    }
int vsprintf_s ( char(&)  buffer[bufsize],
const char *  format,
va_list  args 
)

Definition at line 259 of file kaydara.h.

    {
        return vsprintf_s( buffer,bufsize,format, args ); 
    }
int sprintf_s ( char *  buffer,
size_t  bufsize,
const char *  format,
  ... 
) [inline]

Definition at line 264 of file kaydara.h.

    {
        va_list Arguments;
        va_start( Arguments, format);     /* Initialize variable arguments. */
        int result = vsprintf_s( buffer,bufsize,format, Arguments ); 
        va_end( Arguments );            /* Reset variable arguments.      */
        return result;
    }
int sprintf_s ( char(&)  buffer[bufsize],
const char *  format,
  ... 
)

Definition at line 272 of file kaydara.h.

    {
        va_list Arguments;
        va_start( Arguments, format);     /* Initialize variable arguments. */
        int result = vsprintf_s( buffer,bufsize,format, Arguments ); 
        va_end( Arguments );            /* Reset variable arguments.      */
        return result;
    }
int strcat_s ( char *  dst,
size_t  bufsize,
const char *  src 
) [inline]

Definition at line 281 of file kaydara.h.

    {
        strcat( dst,src );
        return 0;
    }
int strcat_s ( char(&)  dst[bufsize],
const char *  src 
)

Definition at line 286 of file kaydara.h.

    {
        return strcat_s( dst,bufsize,src );
    }
char* _itoa ( int  pValue,
char *  pString,
int  pRadix 
) [inline]

Definition at line 325 of file kaydara.h.

    {
        assert(pRadix==10);
        if (pString) sprintf(pString,"%d", pValue);
        return pString;
    }