RPR ValidatePtr

From CockosWiki

Revision as of 14:00, 4 November 2009 by MikeLacey (Talk | contribs)
Jump to: navigation, search

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR ValidatePtr
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR ValidatePtr

Contents

ValidatePtr()

bool ValidatePtr(void* pointer, const char* ctypename)

Returns true if the pointer is a valid object of the specified type

ValidatePtr can be used (from ReaScript only) for any of the pointer types listed in the API documentation that aren't native C types. The function is probably not normally needed, but ReaScript uses it internally to make scripts less likely to blow up.

Parameters

void* pointer, 
const char* ctypename
Valid values for ctypename are:
 MediaTrack*
 MediaItem*
 ReaProject*
 MediaItem_Take*
 PCM_source*
 PCM_source_transfer_t*
 PCM_source_peaktransfer_t*
 midi_Input*
 midi_Output*
 IReaperControlSurface*
 PCM_source_peaktransfer_t*
 GUID*
 MIDI_event_t*
 MIDI_eventlist*
 LICE_IBitmap*
 MIDIEditor*
 RECT*
 PCM_sink*
 REAPER_PeakBuild_Interface*
 REAPER_PeakGet_Interface*
 preview_register_t*
 IReaperPitchShift*
 REAPER_Resample_Interface*
 KbdSectionInfo*
 WDL_VirtualWnd_BGCfg*

Returns

bool, True if the pointer is a valid object of the specified type.

Examples

Perl


Python


See Also

Stuff

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR ValidatePtr
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR ValidatePtr

Personal tools