How do I do old style concatenation in Pro*C?

From: Robert Nicholson <steffi_at_dgs.dgsys.com>
Date: 1996/09/24
Message-ID: <529rc4$4l0_at_DGS.dgsys.com>#1/1


I'm using cc not CC under HP/UX because ProC assumes you're using cc with it's compiler options in proc.mk

Anyway, I'd like to do

#define TERMINATE(S) do {if (!S ## Ind) S.arr[S.len] = '\0';} while(0);
#define STR(S) (((S ## Ind) == 0) ? S.arr : "")

but it doesn't work because "##" doesn't appear to be supported by cc

So I tried the old /**/ trick instead and Pro*C chokes.

Anyway I can do what I want? Received on Tue Sep 24 1996 - 00:00:00 CEST

Original text of this message