1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>GDSetOverflowCallback</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">GDSetOverflowCallback</H1> 12<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE><CODE>#include <revolution/gd.h></CODE></PRE> 16 <DD> 17<PRE><CODE>typedef void (*GDOverflowCallback)(void);</CODE></PRE> 18 <DD> 19<PRE><CODE>void GDSetOverflowCallback( GDOverflowCallback cb );</CODE></PRE> 20</DL> 21<H2>Arguments</H2> 22<TABLE border="1" cellpadding="3" cellspacing="0.1"> 23 <TBODY> 24 <TR> 25<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>cb</CODE></EM></STRONG></FONT></STRONG></EM></TD> 26<TD width="520">Pointer to an overflow callback function.</TD> 27 </TR> 28 </TBODY> 29</TABLE> 30<H2>Return Values</H2> 31<P>None.</P> 32<H2>Description</H2> 33<P>This function allows you to declare a callback that is invoked when a graphics display list overflows. Overflow is detected only when you attempt to write to a <a href="GDLObj.html"><CODE>GDLObj</CODE></a> structure and the upper limit for the memory buffer associated with the current location pointer is exceeded (or when the limit may be exceeded as a result of writing).</P> 34<P>If an overflow callback is not declared, the default overflow process will force an assertion failure. (Debug build only.)</P> 35<H2>See Also</H2> 36<P><A href="GDGetOverflowCallback.html"><CODE>GDGetOverflowCallback</CODE></A><BR> 37</P> 38<H2>Revision History</H2> 39<P>03/01/2006 Initial version.</P> 40</BODY> 41</HTML>