Does Torque support C style comments? /*comment*/
by James A. Burke · in Torque Game Engine · 03/20/2004 (1:48 am) · 9 replies
Does TorqueScript allow the use of C style comments. eg /*comment*/? It seams it doesn't :( It's very annoying to have to comment out a whole load of text line by line using // or is there another way?
Thanks,
James
Thanks,
James
#2
Alternatively, you could add /* */ support to the engine. In theory (e.g. I havent looked) it should be quite simple.
T.
03/20/2004 (3:04 am)
No, there's no /* */ comments. You can use if(0) { } if its code you want to comment out. Some programmer's editors also support the marking of a block and pressing a button to comment out with //, you could find one and use that.Alternatively, you could add /* */ support to the engine. In theory (e.g. I havent looked) it should be quite simple.
T.
#4
03/20/2004 (3:56 am)
Personly I don't like JEDIT. I think it would be best to add it to the engine. I am not an expert in C++ so if anyone has done if they could tell me I would apriciate it.
#6
03/20/2004 (7:57 am)
No worries. if(0) {} is one of those things that are glaringly obvious once its pointed out to you. I cant remember who mentioned it before, now.
#7
(TGE use to and probably still has a few code blocks commented out that way, ie #if 0 #endif)
03/20/2004 (10:25 am)
Tom : Hmmm, any number of people who've left their mark in the C++ code of TGE maybe ? :)(TGE use to and probably still has a few code blocks commented out that way, ie #if 0 #endif)
#8
Sorry about the game the other day btw, my server went down just as i was about to upload. Got it uploaded elsewhere, but since the server was down no mail got out til the day after and I hadnt realised. I think I'll try and plan more in advance next time :)
Tom.
03/20/2004 (3:22 pm)
Nic: Maybe. I think it was either Matt or Ben, not sure. I use #if 0 sometimes in C & C++, but it never occured to me to use it in script til it was pointed out to me.Sorry about the game the other day btw, my server went down just as i was about to upload. Got it uploaded elsewhere, but since the server was down no mail got out til the day after and I hadnt realised. I think I'll try and plan more in advance next time :)
Tom.
#9
03/25/2004 (10:27 am)
Alright Block Comments! Whoorah! That would explain a few errors...
Associate Stefan Beffy Moises