[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Octal-dev] Re: C++ glue
From: |
Dave O'Toole |
Subject: |
Re: [Octal-dev] Re: C++ glue |
Date: |
Thu, 01 Jun 2000 18:21:04 -0400 |
Thanks for your comments and ideas. With a few clean-ups (and if the
user puts their class declaration in a .h file as you suggest) this
should be fine.
To sum up:
For C programmers, your machine can be in a single source file (.c),
#including "octal.h" and "machine.h".
For C++ programmers, your machine must be split into a .h file and a .cc
file. The sequence is this:
#include ox++mainheader
#include myclassdeclaration.h
#include ox++wrappers
myclass::myfunctions().....
> It doesn't really matter, but the preprocessor check for OX_CLASS maybe
> would be more proper in ox++postclass.cc since that is where it gets used.
Oh, yeah.... they were originally all one file :-). Thanks for pointing
this out.
--
@@@ david o'toole
@@@ address@hidden
@@@ www.gnu.org/software/octal