Compiler directives / options
2 posts
• Page 1 of 1
Compiler directives / options
Are there any compiler directives or such that can be added that will tell the Phalanger to skip lines during compile but will still be seen by the PHP interpreter?
I have a customer PHP Library I would like to convert but there's a lot of code I won't need (requires and such). Looking for a way to skip those lines without having to comment or remove them all. A way to do this would be a nice feature.
I have a customer PHP Library I would like to convert but there's a lot of code I won't need (requires and such). Looking for a way to skip those lines without having to comment or remove them all. A way to do this would be a nice feature.
- mlavinder
- Posts: 3
- Joined: November 5th, 2013, 5:50 pm
Re: Compiler directives / options
Hi,
following snippet
following snippet
- Code: Select all
if (!defined("PHALANGER")) {
...
}
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests