mozjs_sys 0.67.1

System crate for the Mozilla SpiderMonkey JavaScript engine.
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (c) 2012 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <malloc.h>
#include <string.h>

int main() {
  char* stuff = reinterpret_cast<char*>(_alloca(256));
  strcpy(stuff, "blah");
  return 0;
}