Changeset 4557 for trunk/compiler

Show
Ignore:
Timestamp:
11/01/08 12:44:03 (2 months ago)
Author:
pmoura
Message:

Added support for using the set_logtalk_flag/2 directive in source files. This directive is executed when read (thus affecting the compilation of the source code that follows) but its scope is restricted to the source file being compiled.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4554 r4557  
    54045404    ). 
    54055405 
     5406'$lgt_tr_file_directive'(set_logtalk_flag(Flag, Value), _, _, _) :- 
     5407    !, 
     5408    Option =.. [Flag, Value], 
     5409    '$lgt_set_compiler_flags'([Option]).                % local scope (restricted to the source file being compiled) 
     5410 
    54065411'$lgt_tr_file_directive'(set_prolog_flag(Flag, Value), _, _, _) :- 
    54075412    !,