码迷,mamicode.com
首页 > 编程语言 > 详细

Dreamweaver 扩展开发:C-level extensibility and the JavaScript interpreter

时间:2014-11-08 00:50:09      阅读:249      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   io   color   ar   os   java   sp   

The C code in your library must interact with the Dreamweaver JavaScript interpreter at the following different times:

  • At startup, to register the library’s functions
  • When the function is called, to parse the arguments that JavaScript is passing to C
  • Before the function returns, to package the return value

To accomplish these tasks, the interpreter defines several data types and exposes an API. Definitions for the data types and functions that are listed in this section appear in the mm_jsapi.h file. For your library to work properly, you must include the mm_jsapi.h file with the following line at the top of each file in your library:

1 #include "mm_jsapi.h"

Including the mm_jsapi.h file includes, in turn, mm_jsapi_environment.h, which defines the MM_Environment structure.

Dreamweaver 扩展开发:C-level extensibility and the JavaScript interpreter

标签:des   style   blog   io   color   ar   os   java   sp   

原文地址:http://www.cnblogs.com/leonkao/p/4082602.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!