ScummVM API documentation
AGS3::NumberPtr Union Reference

#include <types.h>

Public Member Functions

 NumberPtr (int value)
 
 NumberPtr (void *ptr)
 
 NumberPtr (const void *ptr)
 
 operator int () const
 

Public Attributes

int32 _value
 
void * _ptr
 
const void * _constPtr
 

Detailed Description

Basic union that can be either a number or a pointer. Helps avoid some of the more nasty casts the codebase does, which was causing issues on 64-bit systems


The documentation for this union was generated from the following file: