Ignore:
Timestamp:
08/18/14 10:03:36 (5 years ago)
Author:
jls17
Message:
  • moved ARZeroMemory function to Memory.cpp/.h
  • added new ARZeroMemory function which has a size parameter to replace ZeroMemory? (which is only available on windows)
  • replaced all ZeroMemory? calls with ARZeroMemory
  • fixed some gcc compiler warnings
  • now ARQualification throws AppException? instead of exception, because in the standard implementation there is no constructor to pass a message to exception class (this MSVC specific)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/work_311/ARApi.h

    r422 r610  
    2020#include <arstruct.h> 
    2121#include <arextern.h> 
     22#include "util/Memory.h" 
    2223 
    2324// this is just a little workaround for a bug in ar.h version 7.5 
     
    9192#define AR_XML_VERSION_710 10 
    9293#define AR_XML_VERSION_750 11 
    93  
    94 // template for clearing memory of AR structs 
    95 template<class T> 
    96 void ARZeroMemory(T* obj) { memset(obj, 0, sizeof(T)); } 
Note: See TracChangeset for help on using the changeset viewer.