question about the abs function needed

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Message
Author
georgido
Space Floater
Posts: 24
Joined: Sat Jan 12, 2013 4:56 pm

question about the abs function needed

#1 Post by georgido »

so i'm working on the abs function (last thing under Misc in programming work) and i'd like to ask 1 question.

for the parsing i want to use an Abs_ token in a similar way Log_ token is used in ValueRefParser.h. more specifically like this:

Code: Select all

tok.Log_    [ _c = ValueRef::LOGARITHM ]
can you point me where to add this token?

any help will be greatly appreciated

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12801
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: question about the abs function needed

#2 Post by Geoff the Medio »

I suspect you need to add (Abs) to the NAMES_SEQ_1 list in Names.h

georgido
Space Floater
Posts: 24
Joined: Sat Jan 12, 2013 4:56 pm

Re: question about the abs function needed

#3 Post by georgido »

Geoff the Medio wrote:I suspect you need to add (Abs) to the NAMES_SEQ_1 list in Names.h
yes there it is... thing is i was using the search function of visual studio to find where the other tokens (log, cos, sin, etc) were declared, but for some reason VS couldn't find them... thanks

Post Reply