1. Detecting include files

------=_NextPart_000_000A_01BCFF74.9AAC3EC0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello all,

We are developing a support file for our Mode19 engine, but would also =
like to make it so that it is not dependant on the main engine so that =
it can be used seperately if needed in other applications.=20

Here is the problem:

We need to detect if our engine's include file is loaded.=20

Is there any way to do this in Euphoria? This is like a conditional =
compilation.

Pseudo code to follow for example:

if engine include file is loaded then
    use routine in graphics engine include file
else
    do this routine instead
end if

We need to be able to check for this at run time so as not to duplicate =
the same assembly procedure.
This would also be helpful in cross platform development for =
DOS/Windows. For example:

if platform() =3D WIN32 then
    include dll.e
else
    do this for DOS
end if

Any help would be appreciated.

James G. Harris
Hollow Horse Software  =20

------=_NextPart_000_000A_01BCFF74.9AAC3EC0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hello all,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>We are developing a support file for =
our Mode19=20
engine, but would also like to make it so that it is not dependant on =
the main=20
engine so that it can be used seperately if needed in other =
applications.=20
</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Here is the problem:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>We need to detect if our engine's =
include file=20
is loaded.&nbsp;</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Is there any way to do this in =
Euphoria? This is=20
like a conditional compilation.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Pseudo code to follow for =
example:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>if engine include file is loaded=20
then</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp; use routine in =
graphics=20
engine include file</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>else</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp; do this routine=20
instead</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>end if</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>We need to be able to check for this =
at run time=20
so as not to duplicate the same assembly procedure.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>This would also be helpful in cross =
platform=20
development for DOS/Windows. For example:</FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>if platform() =3D WIN32 then</FONT></DIV>
<DIV><FONT size=3D2></FONT><FONT color=3D#000000 =
size=3D2>&nbsp;&nbsp;&nbsp; include=20
dll.e</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT><FONT =
size=3D2>else</FONT></DIV>
<DIV><FONT size=3D2></FONT><FONT color=3D#000000 =
size=3D2>&nbsp;&nbsp;&nbsp; do this=20
for DOS</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT><FONT size=3D2>end =
if</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Any help would be =
appreciated.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>James G. Harris</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>Hollow Horse Software&nbsp;&nbsp;=20

------=_NextPart_000_000A_01BCFF74.9AAC3EC0--

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu