Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add skeleton for example2
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
HHVM_EXTENSION(example2 ext_example2.cpp) | ||
HHVM_SYSTEMLIB(example2 ext_example2.php) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "hphp/runtime/base/base-includes.h" | ||
|
||
namespace HPHP { | ||
///////////////////////////////////////////////////////////////////////////// | ||
|
||
class Example2Extension : public Extension { | ||
public: | ||
Example2Extension(): Extension("example2", "1.0") {} | ||
|
||
void moduleInit() override { | ||
|
||
loadSystemlib(); | ||
} | ||
} s_example2_extension; | ||
|
||
HHVM_GET_MODULE(example2); | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
} // namespace HPHP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?hh | ||
|