RPR ValidatePtr

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(Undo revision 13370 by Ucokane (Talk))
 
Line 1: Line 1:
-
----
 
-
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
-
----
 
-
=[http://efowozodije.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
-
----
 
-
=[http://efowozodije.co.cc CLICK HERE]=
 
-
----
 
-
</div>
 
{{API_Doc_Header}}
{{API_Doc_Header}}
=ValidatePtr()=
=ValidatePtr()=
Line 53: Line 45:
==Examples==
==Examples==
===C++===
===C++===
-
&lt;source lang=cpp&gt;
+
<source lang=cpp>
-
&lt;/source&gt;
+
</source>
===Perl===
===Perl===
-
&lt;source lang=perl&gt;
+
<source lang=perl>
-
&lt;/source&gt;
+
</source>
===Python===
===Python===
-
&lt;source lang=python&gt;
+
<source lang=python>
-
&lt;/source&gt;
+
</source>
==See Also==
==See Also==

Latest revision as of 23:40, 24 November 2010

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 often needed by ReaPerl or ReaPython programmers, but ReaScript uses it internally to make scripts less likely to blow up.

Parameters

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

Returns

An array, containing
 bool, True if the pointer is a valid object of the specified type.
 void* pointer, 
 const char* ctypename

Examples

C++

 


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