|
|
|
|||||
|
Circular #include possible?
So, say I want to accomplish something like the following, with two .ice input files, each of which needs to use types defined in the other.
file1.ice: Code:
#ifndef _FILE1_ICE
#define _FILE1_ICE
#include "file2.ice"
module file1 {
struct File1Struct {
int whatever;
};
interface Test {
void doSomething( ::file2::File2Struct test );
};
};
#endif _FILE1_ICE
Code:
#ifndef _FILE2_ICE
#define _FILE2_ICE
#include "file1.ice"
module file2 {
struct File2Struct {
int whatever;
};
interface Test {
void doSomethingElse( ::file1::File1Struct test );
};
};
#endif _FILE2_ICE
Quote:
Thanks, MEF
__________________
Mary Ellen Foster Technical University of Munich JAST human-robot dialogue system Maintainer of Fedora Ice packages |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| include order matters? | ctennis | Help Center | 1 | 02-02-2007 02:22 PM |
| The ice include path... | sac_urs | Help Center | 6 | 11-29-2005 03:03 AM |
| Question about #include | AlexKom | Help Center | 3 | 07-20-2005 12:15 PM |
| slice2cpp & --include-dir | vukicevic | Bug Reports | 2 | 12-02-2003 11:40 PM |
| generated #include | clemens | Help Center | 1 | 06-04-2003 08:21 AM |