HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[vJass] a question about the inliner

07-30-2008, 11:17 AM#1
Troll-Brain
There is an example :

Collapse JASS:
library ....

    globals
        private integer I
        private gamecache GC
    endglobals

    private function H2I takes handle h returns integer
        return h
        return 0
    endfunction
    
    private function H2S takes handle h returns string
        return I2S(H2I(h))
    endfunction

    function ....
       set I= GetStoredInteger(GC,H2S(u),"TrigMoveNum")
    ... other stuff 
    endfunction

    ... initializer of the library

endlibrary

The function H2S is not inlined but why ?
Because there are two lines in the H2I function ?
07-30-2008, 11:51 AM#2
Captain Griffen
Should be I think. Sure you aren't using debugger mode?
07-30-2008, 12:02 PM#3
Troll-Brain
Quote:
Originally Posted by Captain Griffen
Should be I think. Sure you aren't using debugger mode?
Hmm you're right, i used the debug mode ...
Vexorian planned to differentiate the debug mode of inliner?

Because that is a pity.
07-30-2008, 12:24 PM#4
Captain Griffen
Debug mode doesn't inline.
07-30-2008, 12:28 PM#5
Troll-Brain
Quote:
Originally Posted by Captain Griffen
Debug mode doesn't inline.
Yes i know, i want mean that shouldn't be the same option.
07-30-2008, 01:36 PM#6
Vexorian
inline makes debugging code quite hard.
07-30-2008, 01:38 PM#7
Troll-Brain
Quote:
Originally Posted by Vexorian
inline makes debugging code quite hard.
Hard to get inlined (compilation) or hard for the user to put debugs ?
Imho, it's not so hard for the user.