Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add skeleton for example2
  • Loading branch information
sgolemon committed Jan 6, 2015
1 parent c385277 commit 20dc4ef
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example2/config.cmake
@@ -0,0 +1,3 @@
HHVM_EXTENSION(example2 ext_example2.cpp)
HHVM_SYSTEMLIB(example2 ext_example2.php)

19 changes: 19 additions & 0 deletions example2/ext_example2.cpp
@@ -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
2 changes: 2 additions & 0 deletions example2/ext_example2.php
@@ -0,0 +1,2 @@
<?hh

0 comments on commit 20dc4ef

Please sign in to comment.